12.11.2013, 14:11
pawn Код:
CMD:achat(playerid, params[])
{
new p2[128], Pna[32];
if(PlayerData [playerid] [ALevel] >= 1)
{
if( isnull (params)) return SendClientMessage(playerid, COLOR_RED, "/ac [msg]");
GetPlayerName(playerid, Pna, 32);
for(new i = 0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerData[i] [ALevel] >= 1) // change ALevel to the one u store ur data
{
format(p2, 128, "Admin %s (%d): %s", Pna, playerid, params);
SendClientMessage(i , COLOR_KHAKI, p2); // change color_khaki to the color u want.
}
}
}
}
else
{
return 0;
}
return 1;
}
this kind of cmds doesn't need sscanf