02.03.2012, 19:35
Kako radi copy + paste....
E da ovo za boju -1 neznam oce li da radi
pawn Код:
//U fs ili gm init
SetTimer("Nitrolimiter",1000,1);
//Bilo gde u scripti samo da nije u nekoj funkciji
forward NitroLimiter();
public NitroLimiter()
{
new string[56],component;
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
component = GetVehicleComponentInSlot(GetPlayerVehicleID(i), CARMODTYPE_NITRO);
if (IsPlayerInAnyVehicle(i) && (component == 1008 || component == 1009 || component == 1010))
{
if (Nlimit[i] > 20) Nlimit[i] = 20;
if (Usingnitro[i] == 0) Nlimit[i]++,SendClientMessage(i,-1,"Nlimit goes more");
else Nlimit[i]--;
format(string,sizeof(string),"Nlimit is: %d",Nlimit[i]);
SendClientMessage(i ,-1,string);
}
}
}
}