29.07.2011, 01:23
i create a command that admin can change a team to player.
the problem is that i can't use this command on players it's affect only me..
i mean that when i typing /ru (id) never mind the id that i put it will affect me
tnx for helping
the problem is that i can't use this command on players it's affect only me..
i mean that when i typing /ru (id) never mind the id that i put it will affect me
tnx for helping
PHP код:
command(ru, playerid, params[ ])
{
new id;
if ( AdminLevel[ playerid ] != 1337 )
return SendClientMessage( playerid, Red, "Invalid Command" );
if ( sscanf( params, "u", id ) )
return SendClientMessage( playerid, Red, "Usage: /ru [playerid/PartOfName]" );
SendClientMessage( id,Lime, "You have been forced to Russia team by a Server Admin.");
Setteam(playerid, 0);
return 1;
}