05.08.2012, 11:22
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.
I basically want it to show the persons rank when he/she spawns.
This is the code that should work:
Код:
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);
}
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;

