Status
#3

When you do /buyturtle, change a variable to '1'.
pawn Код:
new HasTurtle[MAX_PLAYERS]; // global variable, add this on top of yours cript

CMD:buyturtle(playerid, params[])
{
// allt he codes from /turtle here
    HasTurtle[playerid] = 1;
    return 1;
}

CMD:gotturtle(playerid, params[])
{
    switch( HasTurtle[playerid] )
    {
        case 0: // when the player has no turtle
        {
 
        }
        case 1: // when the player has a turtle
        {

        }
    }
    return 1;
}
Reply


Messages In This Thread
Status - by wumpyc - 07.10.2011, 04:35
Re: Status - by [GOD]Dragonster82 - 07.10.2011, 05:09
Re: Status - by Wesley221 - 07.10.2011, 06:02

Forum Jump:


Users browsing this thread: 1 Guest(s)