problem in command
#1

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
PHP код:
command(ruplayeridparams[ ])
{
     new 
id;
     if ( 
AdminLevelplayerid ] != 1337 )
     return 
SendClientMessageplayeridRed"Invalid Command" );
     if ( 
sscanfparams"u"id ) )
     return 
SendClientMessageplayeridRed"Usage: /ru [playerid/PartOfName]" );
     
SendClientMessageid,Lime"You have been forced to Russia team by a Server Admin.");
     
Setteam(playerid0);
     return 
1;

Reply


Messages In This Thread
problem in command - by marik1599 - 29.07.2011, 01:23
Re: problem in command - by Famalamalam - 29.07.2011, 01:26
Re: problem in command - by marik1599 - 29.07.2011, 01:50
Re: problem in command - by Famalamalam - 29.07.2011, 01:52
Re: problem in command - by marik1599 - 29.07.2011, 01:58
Re: problem in command - by Famalamalam - 29.07.2011, 02:00

Forum Jump:


Users browsing this thread: 3 Guest(s)