SA-MP Forums Archive
Command 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: Command help (/showthread.php?tid=379908)



Command help - Beljulji - 23.09.2012

how i can add like when i type /dc im teleported to desertcoaster and when i type /desertcoaster im also teleported to that place? here is command
Код:
if (strcmp(cmdtext,"/desertcoaster", true , 14) ==0)
	{
	SetPlayerPos(playerid,-282.6749,2633.1079,62.7912);
        new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        format(string,sizeof string,"%s has joined /desertcoaster.",pName);
        SendClientMessageToAll(yellow,string);
	SendClientMessage(playerid,red,"Welcome To Desert Coaster");
	return 1;
	}



Re: Command help - clarencecuzz - 23.09.2012

Have you tried this?
pawn Код:
if (strcmp(cmdtext,"/desertcoaster", true ) == 0 || strcmp(cmdtext,"/dc",true) == 0)



Re: Command help - Beljulji - 23.09.2012

tnx man you realy helped me