#8

Be more specific.

EDIT:

Add the 'else' to the tutorial above:

pawn Код:
CMD:robthis(playerid, params[])
{
    #pragma unused params // we dont need the params
    if(IsPlayerInDynamicCP(playerid, CP_tatoo)) // Checking if player is in the checkpoint
    {
        if(tatoorobbedrecently >=1) //checking if tatoo shop has been robbed recently
        {
            SendClientMessage(playerid, COLOR_RED, "Tatoo Shop has been robbed recently"); // sending error message
        }
        else
        {
            SendClientMessageToAll(COLOR_RED, "The tattoo shop is being robbed!");
        }
        ROBBING_TATOO[playerid] = 60; // setting the robbery timer
        tatoorobbedrecently =180; // Time the players needs to wait for starting an another robbery in the same place
    }
    return 1;
}
Reply


Messages In This Thread
help - by Diti1 - 03.08.2014, 23:04
Re: help - by Weaselpwns - 03.08.2014, 23:20
Re: help - by Diti1 - 03.08.2014, 23:41
Re: help - by Don_Cage - 04.08.2014, 02:21
Re: help - by Diti1 - 04.08.2014, 09:33
Re: help - by SHE790 - 04.08.2014, 09:34
Re: help - by Diti1 - 04.08.2014, 09:48
Re: help - by Weaselpwns - 04.08.2014, 09:52

Forum Jump:


Users browsing this thread: 2 Guest(s)