[HELP] Is this possible?
#1

Like "GetPlayerHealth" and "SetPlayerHealth"

Here is an example of what i mean:

pawn Код:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/givemefish", cmdtext, true, 10) == 0)
    {
        SetPlayerFish(playerid, +1);
        SendClientMessage(playerid, 0xFF0000FF, "You gave yuorself 1 fish");
        return 1;
    }
   
    if (strcmp("/howmanyfish", cmdtext, true, 10) == 0)
    {
        new MyFish;
        MyFish = GetPlayerFish(playerid);
       
        format(string, sizeof(string), "You have %s fish", fish);
        SendClientMessage(playerid, 0xFF0000FF, string);
        return 1;
    }
    return 0;
}

stock GetPlayerFish(playerid, fish)
{
    //Code
    return 1;
}

stock SetPlayerFish(playerid, fish)
{
    //Code
    return 1;
}
Reply


Messages In This Thread
[HELP] Is this possible? - by Larsey123IsMe - 15.01.2011, 15:48
Re: [HELP] Is this possible? - by jamesbond007 - 15.01.2011, 15:56
Re: [HELP] Is this possible? - by Kase - 15.01.2011, 16:30
Re: [HELP] Is this possible? - by coole210 - 15.01.2011, 16:38
Re: [HELP] Is this possible? - by Larsey123IsMe - 15.01.2011, 16:49

Forum Jump:


Users browsing this thread: 3 Guest(s)