Quote:
Originally Posted by taynam22
pawn Код:
else if(vId==AluguelCar[0]||vId==AluguelCar[1]||vId==AluguelCar[2]||vId==AluguelCar[3]||vId==AluguelCar[4]||vId==AluguelCar[5]||vId==AluguelCar[6]||vId==AluguelCar[7]||vId==AluguelCar[8]||vId==AluguelCar[9]||vId==AluguelCar[10]||vId==AluguelCar[11]||vId==AluguelCar[12]||vId==AluguelCar[13]||vId==AluguelCar[14]||vId==AluguelCar[15]) { new string[128]; format(string, sizeof(string),"Para usar este veнculo й necessбrio aluga-lo !! Para aluga digite /SEUCOMANDO - Para Sair digite /sairveiculo"); SendClientMessage(playerid, SUACOR, string); TogglePlayerControllable(playerid, 0); }
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256]; if(strcmp(cmd, "/sairveiculo", true) == 0) { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } return 1; }
|
Quote:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256]; if(strcmp(cmd, "/sairveiculo", true) == 0) { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } return 1; }
|
TogglePlayerControllable(playerid, 1);
Quando o player sair do veiculo vai congelar ele '-'
Quote:
pawn Код:
else if(vId==AluguelCar[0]||vId==AluguelCar[1]||vId==AluguelCar[2]||vId==AluguelCar[3]||vId==AluguelCar[4]||vId==AluguelCar[5]||vId==AluguelCar[6]||vId==AluguelCar[7]||vId==AluguelCar[8]||vId==AluguelCar[9]||vId==AluguelCar[10]||vId==AluguelCar[11]||vId==AluguelCar[12]||vId==AluguelCar[13]||vId==AluguelCar[14]||vId==AluguelCar[15]) { new string[128]; format(string, sizeof(string),"Para usar este veнculo й necessбrio aluga-lo !! Para aluga digite /SEUCOMANDO - Para Sair digite /sairveiculo"); SendClientMessage(playerid, SUACOR, string); TogglePlayerControllable(playerid, 0); }
|
TogglePlayerControllable(playerid, 0);
Ai vai descongelar ele?
Me corrigem se eu estiver errado:
pawn Код:
1 = true // verdadeiro
0 = false // falso