{ lincon = AddStaticVehicle(560,RandomSpawn[rand][0],560,RandomSpawn[rand][1],560,RandomSpawn[rand][2]); SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]); PutPlayerInVehicle(playerid, lincon,0); noevento[playerid] = 1; TogglePlayerControllable(playerid, 0); }
Alquem me diz se isto esta certo pf.....
Estou tentando fazer desde cedo ate agora nao acertei. Код:
{ lincon = AddStaticVehicle(560,RandomSpawn[rand][0],560,RandomSpawn[rand][1],560,RandomSpawn[rand][2]); SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]); PutPlayerInVehicle(playerid, lincon,0); noevento[playerid] = 1; TogglePlayerControllable(playerid, 0); } |
{
lincon = CreateVehicle(560,RandomSpawn[rand][0],RandomSpawn[rand][1],RandomSpawn[rand][2],RandomSpawn[rand][3],random(255),random(255),-1);
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
PutPlayerInVehicle(playerid, lincon,0);
noevento[playerid] = 1;
TogglePlayerControllable(playerid, 0);
}