04.09.2010, 20:40
pawn Код:
command(makedonator, playerid, params[])
{
new id;
if( sscanf( params, "u", id) )
{
if (IsPlayerAdmin(playerid))
{
SendClientMessage( playerid, COLOR_WHITE, "SYNTAX: /makeadonator [id]" );
}
}
else
{
if (IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(id))
{
Donator[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "ERROR: Player isn't connected");
}
}
}
return 1;
}