25.02.2014, 23:07
Like
Add at the top of the script
And then
Didn't tested. Tell me if it works.
And I recommand Benzo's script
Add at the top of the script
pawn Код:
forward MinigunTimer();
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/minigunevent", cmdtext, true, 10) == 0)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GivePlayerWeapon(playerid, 38, 999999);
}
}
SetTimer("SaveDataTimer",60000 , 0);
return 1;
}
}
public MinigunTimer()
{
foreach(new playerid : Player)
{
GivePlayerWeapon(playerid, 38, 0);
}
return 1;
}
And I recommand Benzo's script