10.07.2012, 01:29
pawn Код:
SetTimer("Utilitarios", 1000, true);//gamemodeinit
forward Utilitarios();
public Utilitarios()
{
for(new i, f = GetMaxPlayers(); i < f; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInAnyVehicle(i))
{
RepairVehicle(GetPlayerVehicleID(i));
AddVehicleComponent(GetPlayerVehicleID(i) ,1010);
}
new tmpm[f], tmpsc[f];
GetPlayerMoney(i, tmpm[i]);
GetPlayerScore(i, tmpsc[i]);
PlayerInfo[i][pGrana] = tmpm[i];
PlayerInfo[i][pScore] = tmpsc[i];
return 1;
}
}
return 0;
}