10.09.2016, 14:39
testa agora
pawn Код:
CMD:rvm(playerid, params[])
{
new HouseID, String[128];
for(new i; i < MAX_HOUSESPERPLAYER; i++)
{
if(APlayerData[playerid][Houses][i] != 0)
{
HouseID = APlayerData[playerid][Houses][i];
for(new CarSlot; CarSlot < 10; CarSlot++)
{
if(AHouseData[HouseID][VehicleIDs][CarSlot] != 0)
{
SetVehicleToRespawn(AHouseData[HouseID][VehicleIDs][CarSlot]);
}
}
}
}
return SendClientMessage(playerid, -1,"{ffff00}Vocк respawnou todos veнculos casa.");
}