12.03.2011, 04:28
Quote:
Код:
if(IsPlayerInVehicle(playerid, 571)) // 571 = KART ID { SetPlayerPos(playerid, Randomspawnx, Randomspawny, Randomspawnz || playerid, Randomspawnx, Randomspawny, Randomspawnz || playerid, Randomspawnx, Randomspawny, Randomspawnz); return 1; } |
Below code would be hipotetically the solution, but it's not.
pawn Код:
if(IsPlayerInVehicle(playerid, 571)) // 571 = KART ID
{
switch (random(3))
{
case 0: { SetPlayerPos(playerid, x, y, z); }
case 1: { SetPlayerPos(playerid, x, y, z); }
case 2: { SetPlayerPos(playerid, x, y, z); }
}
}