void CustomFiberThread::RunScript() { // This is a fiber thread, so we use an loop to run the contents of this script. // The thread will terminate when we return from this function. while (IsThreadAlive()) { if ((GetAsyncKeyState(VK_F7) & 1) != 0) { u32 playerId = 0; // Utilisateur à switcher, de 0 à 31. u32 playerIndex = ConvertIntToPlayerIndex(playerId); PrintStringWithLiteralStringNow("STRING", GetPlayerName(playerIndex), 1000, 1); } else if ((GetAsyncKeyState(VK_F8) & 1) != 0) { u32 playerId = 0; u32 playerIndex = ConvertIntToPlayerIndex(playerId); Ped ped; f32 x,y,z; GetPlayerChar(playerIndex, &ped); GetCharCoordinates(ped, &x, &y, &z); } Wait(100); } }
if ((GetAsyncKeyState(VK_F7) & 1) != 0) { for(u32 playerId = 0; playerid<32; playerId++) { u32 playerId = 0; // Utilisateur à switcher, de 0 à 31. u32 playerIndex = ConvertIntToPlayerIndex(playerId); PrintStringWithLiteralStringNow("STRING", GetPlayerName(playerIndex), 1000, 1); } }
if ((GetAsyncKeyState(VK_F7) & 1) != 0) { for(u32 playerId = 0; playerid<32; playerId++) { u32 playerIndex = ConvertIntToPlayerIndex(playerId); PrintStringWithLiteralStringNow("STRING", GetPlayerName(playerIndex), 1000, 1); } }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question