09.06.2009, 20:35
Hello,
I have a problem. I've readed all the tutorials about how to make a command but I still don't know how to make this one.
I know it's something with TogglePlayerControllable(playerid, toggle); but this is all I got..
I have a problem. I've readed all the tutorials about how to make a command but I still don't know how to make this one.
I know it's something with TogglePlayerControllable(playerid, toggle); but this is all I got..
Quote:
if(strcmp(cmdtext, "/tie", true) == 0) { if(gTeam[giveplayerid] != 4) { TogglePlayerControllable(playerid, 0) SendClientMessage(playerid, COLOR_YELLOW, You are now tied up"); } return 1; } if(strcmp(cmdtext, "/untie", true) == 0) { if(gTeam[giveplayerid] != 4) { TogglePlayerControllable(playerid, 1) SendClientMessage(playerid, COLOR_YELLOW, You have been released."); } return 1; } |