29.04.2016, 17:47
Mais ou menos isso...
Nesse caso й sem comando, se quer comando, adapte...
Nesse caso й sem comando, se quer comando, adapte...
Код:
new GuardarDinheiro[MAX_PLAYERS]; if(vehicleid != CarInfo[playerid][cOwner]) { for(new other; other < MAX_PLAYERS; other ++) { format(string,sizeof(string),"Este veнculo й de %s", CarInfo[other][cOwner]); GuardarDinheiro[other] += 2000; } SendClientMessage(playerid, -1, string); GivePlayerMoney(playerid, -2000); } if(vehicleid == CarInfo[playerid][cOwner]) { if(GuardarDinheiro[playerid] > 0) GivePlayerMoney(playerid, GuardarDinheiro[playerid]), GuardarDinheiro[playerid] = 0; }