14.08.2012, 19:34
pawn Код:
CMD:comprarcarro(playerid,params[])
{
for(new i = 0; i < sizeof(CarroInfo); i++)
{
new newcar = GetPlayerVehicleID(playerid);
if(CarroInfo[i][cCarroDono] == newcar)
{
if(GetPlayerMoney(playerid) >= CarroInfo[i][cPreco])
{
strmid(CarroInfo[i][cDono], NomeP(playerid), 0, strlen(NomeP(playerid)), 999);
SalvarCarros();
}
}
}
return 1;
}