Could anyone help me please
#1

lock and bin it please.
Reply
#2

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;
}
Reply
#3

lock and bin it please.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)