right way? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: right way? (
/showthread.php?tid=131900)
right way? -
aircombat - 05.03.2010
how to do this right way :
if(strcmp("/opencgate", cmd, true) == 0 && strcmp(name, "Etch"))
________
Granny Webcams
Re: right way? -
Torran - 05.03.2010
Isent that the right way?
Idk only thing ive ever done like that is
if(dialogid == register && response)
Re: right way? -
Hot - 05.03.2010
Maybe you could do something like this:
pawn Код:
if(!strcmp("/opencgate", cmd, true)) {
if(strcmp(name, "Etch")) {
// MoveObject(...);
return true;
}
else return SendClientMessage(playerid, 0xFFFFFFAA, " Only Etch is allowed to open the gate.");
}
Re: right way? -
aircombat - 05.03.2010
didnt work
solved anyway
________
Vaporizer silver surfer