Little Help ???
#1

Hi there
i have this command and i want that players can use this command only once in 2 minutes.

Can help ?

if(strcmp(cmdtext, "/naudoti", true)==0)
{
if(playerDB[playerid][narkotikai]<1)
{
SendClientMessage(playerid, COLOR, "* Neturite narkotiku");
return 1;
}

ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1 ,1,1,1);
playerDB[playerid][narkotikai]-=1;
SetPlayerHealth(playerid,100);
SendClientMessage(playerid,COLOR,"* Naudojate narkotikus");
SetPlayerScore(playerid,GetPlayerScore(playerid)-5);
return 1;
}
Reply


Messages In This Thread
Little Help ??? - by [LNL]Remulis - 03.07.2009, 12:41
Re: Little Help ??? - by SiJ - 03.07.2009, 13:01
Re: Little Help ??? - by Ignas1337 - 03.07.2009, 13:01
Re: Little Help ??? - by SiJ - 03.07.2009, 13:02
Re: Little Help ??? - by Ignas1337 - 03.07.2009, 13:02
Re: Little Help ??? - by [LNL]Remulis - 03.07.2009, 13:26
Re: Little Help ??? - by abhinavdabral - 03.07.2009, 13:42
Re: Little Help ??? - by SiJ - 03.07.2009, 13:50
Re: Little Help ??? - by abhinavdabral - 03.07.2009, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)