force class selection help [URGENT}
#1

PHP код:
CMD:force(playeridparams[])
{
    new 
targetidsendername[MAX_PLAYER_NAME], receivername[MAX_PLAYER_NAME];
    if(
sscanf(params"u"targetid)) return SendClientMessage(playerid0xAFAFAFAA"USAGE: /force (playerid)");
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid0xAFAFAFAA"ERROR : Only RCON Admins can use the command");
    
GetPlayerName(playeridreceivernamesizeof(receivername));
    
GetPlayerName(playeridsendernamesizeof(sendername));
    
format(stringSOS"You have been forced into class selection by Admin %s"receivername);
    
SendClientMessage(targetidgreenstring);
    
format(stringSOS"You have forced %s into class selection"sendername);
    
SendClientMessage(playeridgreenstring);
    
ForceClassSelection(playerid);
    return 
1;

But IG everything is executed and displayed even the messages. Just the player doesn't get spawned or forced into class Selection. Any help ?
Reply


Messages In This Thread
force class selection help [URGENT} - by Commands - 03.11.2015, 12:20
Re: force class selection help [URGENT} - by MarcGonzales - 03.11.2015, 12:25
Re: force class selection help [URGENT} - by SecretBoss - 03.11.2015, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)