06.10.2010, 19:50
Hello,
I'm trying to find a way how to add a timer on my command. It can't really find a function to add the time check to the command. (e.g you type /taxi then you'll have to wait 30 seconds before using it again.)
This is my taxi command(clean):
And I'm trying to find a way to make a command /find. It's supposed to show you where the player is located at(cordinates).
e.g /find Biesmen
Message:"Biesmen is located at x=blabla, z=blabla, y=blabla".
Thank you.
I'm trying to find a way how to add a timer on my command. It can't really find a function to add the time check to the command. (e.g you type /taxi then you'll have to wait 30 seconds before using it again.)
This is my taxi command(clean):
Код:
if(strcmp(cmd, "/taxi", true) == 0)
{
if(IsPlayerConnected(playerid)) {
format(string, sizeof(string), "%s(%i) is looking for a Taxi at %s to pick him up.", playername, playerid);
SendClientMessageToAll(COLOR_ORANGE, string);
return 1;
} else {
return 1;
}
}
e.g /find Biesmen
Message:"Biesmen is located at x=blabla, z=blabla, y=blabla".
Thank you.

