Quote:
Originally Posted by Whoo
booleanas so recebem valor verdadeiro e falso true and false;
PHP код:
APlayerData[playerid][Colisao] = true;
|
Quote:
Originally Posted by [BOPE]Seu._.Madruga
PHP код:
CMD:colisao(playerid)
{
APlayerData[playerid][Colisao] = (APlayerData[playerid][Colisao] == true ? (false) : (true));
GameTextForPlayer(playerid, APlayerData[playerid][Colisao] == true ? ("~w~Colisao ~g~desabilitada~w~!") : ("~w~Colisao ~r~habilitada~w~!"), 5000, 4);
DisableRemoteVehicleCollisions(playerid, APlayerData[playerid][Colisao]);
return 1;
}
|
Vlw +REP pra vcs dois, me ajudaram muito