Show Players Rank Once They Join Server (ZCMD)
#1

I'm using a filterscript known as ZCMD, I added this code to the onplayerspawn and it doesn't seem to be working when the player spawns nothing at all appears, yet the script compiles successfully.

Код:
public OnPlayerSpawn(playerid)
{

	CallRemoteFunction("GetPlayerRankInfo", "d", playerid);

    GivePlayerWeapon(playerid,27,1000);
    GivePlayerWeapon(playerid,25,1000);
        GivePlayerWeapon(playerid,28,1000);
        GivePlayerWeapon(playerid,34,500);
        GivePlayerWeapon(playerid,24,500);
        
}
I basically want it to show the persons rank when he/she spawns.


This is the code that should work:

Код:
strcat(tmp, rank);
    SendClientMessage(playerid, COLOR_WHITE, tmp);
    format(string, sizeof(string),"Name:%s - Your Current Score: "#COL_GREEN#"%d]",Pname, score);
    SendClientMessage(playerid, COLOR_WHITE, string);
    return 1;
Reply


Messages In This Thread
Show Players Rank Once They Join Server (ZCMD) - by Eminem 2ka9 - 05.08.2012, 11:22
Re: Show Players Rank Once They Join Server (ZCMD) - by Cxnnor - 05.08.2012, 11:27
Re: Show Players Rank Once They Join Server (ZCMD) - by Eminem 2ka9 - 05.08.2012, 11:32
Re: Show Players Rank Once They Join Server (ZCMD) - by Cxnnor - 05.08.2012, 11:37
Re: Show Players Rank Once They Join Server (ZCMD) - by Misiur - 05.08.2012, 11:40
Re: Show Players Rank Once They Join Server (ZCMD) - by Eminem 2ka9 - 05.08.2012, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)