Status
#1

How can i make like if player used /buyturtle then he can use /goturtle?

please help me
Reply
#2

Please be more specific? What do you want your turtle to do.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)