11.08.2009, 12:09
so now i have this and it should work?
pawn Code:
if (strcmp("/AttackStrike", cmdtext, true, 10) == 0)
{
SetTimer("AttackTimer", 5000, 1);
new name[MAX_PLAYER_NAME+1];
new String[256];
GetPlayerName(playerid, name, sizeof(name));
format(String, sizeof(String), "%s Has Sent an Airstrike, Take Cover!", name);
SendClientMessageToAll(0xDC143CAA, String);
GivePlayerMoney(playerid, -1000);
return 1;
}
if (strcmp("/DefenceStrike", cmdtext, true, 10) == 0)
{
SetTimer("OneSecTimer", 5000, 1);
new name[MAX_PLAYER_NAME+1];
new String[256];
GetPlayerName(playerid, name, sizeof(name));
format(String, sizeof(String), "%s Has Sent an Airstrike, Take Cover!", name);
SendClientMessageToAll(0xDC143CAA, String);
GivePlayerMoney(playerid, -1000);
return 1;
}