Could anyone help me please - 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: Could anyone help me please (
/showthread.php?tid=436155)
lock and bin it please. -
Siv - 10.05.2013
lock and bin it please.
Re: Could anyone help me please -
[MG]Dimi - 10.05.2013
Take any gate tutorial that use commands. And then where you have command.
Example:
pawn Код:
CMD:gate(playerid,params[])
{
new name[25];
GetPlayerName(playerid,name,25);
if(strcmp(name,"Melinda_Dawson",true) != 0) return 0;
//...
return 1;
}
Re: Could anyone help me please -
Siv - 10.05.2013
lock and bin it please.
Re: Could anyone help me please -
[MG]Dimi - 10.05.2013
pawn Код:
if(strcmp(cmdtext,"/opendoor", true) == 0)
{
new name[25];
GetPlayerName(playerid,name,25);
if(strcmp(name,"Melinda_Dawson",true) != 0) return SendClientMessage(playerid, COLOR_RED, "Access denied");
MoveObject(door, 2244.5947265625,-2225.8310546875,13.196100234985,2);
SendClientMessage(playerid, COLOR_YELLOW, "You opened the door ");
return 1;
}
Like this.