tatoorobbedrecently Prb
#1

tatoorobbedrecently =30 is not work
i can rob just 1 times !!

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

PHP код:
CMD:robthis(playeridparams[])
{
    
#pragma unused params // we dont need the params
    
if(IsPlayerInDynamicCP(playeridCP_tatoo)) // Checking if player is in the checkpoint
    
{
        if(
tatoorobbedrecently >=1//checking if tatoo shop has been robbed recently
        
{
    
SendClientMessage(playeridCOLOR_RED"The shop has been robbed recenty. Please wait"); // sending error message
    
return 1;
    }
        
ROBBING_TATOO[playerid] = 5// setting the robbery timer
        
tatoorobbedrecently =30// Time the players needs to wait for starting an another robbery in the same place
    
}
    else {
    
SendClientMessage(playeridCOLOR_RED"ERROR:You need to be near the Shop"); // Sends a SCM Your not on a Checkpoint.
    
}
    return 
1;

Reply


Messages In This Thread
tatoorobbedrecently Prb - by s3ek - 12.02.2015, 16:01
Re: tatoorobbedrecently Prb - by xStunt - 12.02.2015, 16:28
Re: tatoorobbedrecently Prb - by s3ek - 12.02.2015, 16:36
Re: tatoorobbedrecently Prb - by CalvinC - 12.02.2015, 16:47
Re: tatoorobbedrecently Prb - by s3ek - 12.02.2015, 17:06

Forum Jump:


Users browsing this thread: 1 Guest(s)