04.12.2010, 05:02
I have a /stadium command at the moment that teleport's to 17 different DM spots, but when someone types /stadium alone, I want it to return an error saying:
How can I do that?
This is what I have at the moment:
Thanks
pawn Код:
USAGE: /stadium [1-17]
This is what I have at the moment:
pawn Код:
if(!strcmp(cmdtext,"/stadium 17",true))
{
SetPlayerPos(playerid,593.0692,-2433.1682,46.8059);
SendClientMessage(playerid,0x33CCFFAA,"WELCOME - Teleported To Deathmatch Stadium 17.");
new string[128];
new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string),"%s (%d) Has Teleported To Stadium 17. (/stadium 17)",playername,playerid); SendClientMessageToAll(COLOR_PINK,string);
return 1;