warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
GetPlayerVehicleSeat
Deskripcija
Saznaj u kojem je igrač sjedištu.
Ime | Deskripcija |
---|---|
playerid | ID player you want to get the seat of. |
Returns
ID sjedišta u kojem je igrač. -1 ako nije u vozilu, 0 ako je vozač, 1 ako je suvozač, i 2 i 3 su zadnja sjedišta.
Primjeri
if (strcmp(cmdtext, "/myseat", true) == 0)
{
new
playerSeat = GetPlayerVehicleSeat(playerid);
// Kako možete odbaciti svoje podatke.
if (playerSeat == 128)
{
return SendClientMessage(playerid, 0xFFFFFFFF, "Greška nas je spriječila da vratimo ID sjedala.");
}
new
message[14];
format(message, sizeof(message), "Tvoje sjedište: %i", playerSeat);
SendClientMessage(playerid, 0xFFFFFFFF, message);
return 1;
}
Srodne Funkcije
- GetPlayerVehicleID: Dobij ID vozila u kojem je igrač trenutno.
- PutPlayerInVehicle: Postavi igrača u vozilo.