How to assign a 'nick' to a class?
#5

I'm guessing your players have accounts and must login, so, modify player accounts to add a new variable: pMedic.

Make an admin command to make this variable pMedic = 1 for a player you choose.

Then under the callback OnPlayerRequestSpawn:

if(classid == MEDICSKINID)
{
if(PlayerInfo[playerid][pMedic] != 1)
{
SendClientMessage(playerid,COLOR_RED,"You must be made medic by an admin to choose medic skin!");
return 0;
}
}
Reply


Messages In This Thread
How to assign a 'nick' to a class? - by Puzi - 17.06.2009, 10:21
Re: How to assign a 'nick' to a class? - by Andom - 17.06.2009, 10:40
Re: How to assign a 'nick' to a class? - by Puzi - 17.06.2009, 11:08
Re: How to assign a 'nick' to a class? - by Puzi - 17.06.2009, 11:18
Re: How to assign a 'nick' to a class? - by [M2S]moe - 17.06.2009, 12:48
Re: How to assign a 'nick' to a class? - by illay - 26.06.2009, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)