Get a name for use?
#2

pawn Код:
forward VIPHealth(playerid);
public VIPHealth(playerid)
{
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    if(!strcmp(pname, "BL1nk", true))
    {
        SetPlayerHealth(playerid, 99999);
    }
}
Strcmp to compare strings, not a very good system you have there though you'll have to script every vips players name into your script.
Reply


Messages In This Thread
Get a name for use? - by -Rebel Son- - 22.11.2010, 23:27
Re: Get a name for use? - by iggy1 - 22.11.2010, 23:34
Re: Get a name for use? - by -Rebel Son- - 22.11.2010, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)