19.03.2011, 12:16
Hello , i am making a /payday command , i'm trying to send $5000 to all players when an admin types it
Here's the code , can you show me what should i add ?
Here's the code , can you show me what should i add ?
PHP код:
if (strcmp("/payday", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
//I Need to add here , how to send $5000 to all players
}
else
{
SendClientMessage(playerid,0xFFFFFFFF,"You are not an admin !");
}
return 1;
}