SA-MP Forums Archive
help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help (/showthread.php?tid=529778)



help - Diti1 - 03.08.2014

hey boys
Can some one help me to script a robbery system i tried much times but i cant do it
i want to make it like example to rob business need two boys to be in the same shop and with command /robbiz or something please help me


Re: help - Weaselpwns - 03.08.2014

http://pastebin.com/dQcG37ER

This should help you out, best of luck!


Re: help - Diti1 - 03.08.2014

but i dont need a bank robbery script xD ......any way thanks dud


Re: help - Don_Cage - 04.08.2014

It's not a copy paste.. It's so you can see how it's done and then make what you want yourself


Re: help - Diti1 - 04.08.2014

=_+ i dont want to copy it lol i just want some one who can help me to do it by my self but with his help xd


Re: help - SHE790 - 04.08.2014

https://sampforum.blast.hk/showthread.php?tid=505857


Re: help - Diti1 - 04.08.2014

Thanks all
but it dont show a time when im in checkpoint and start the robbery can you help me to show it when some one start robbery ?HMM i need something like when he enter on CP and press robthis server will show him a count wich is from 30 to 0 can you do this ?


Re: help - Weaselpwns - 04.08.2014

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;
}