29.04.2009, 20:52
Quote:
Originally Posted by OmeRinG
I really don't get why people use strcmp like that, just do:
if (!strcmp("/Jail", cmdtext, true)) And yes it works like that, with strtok for playerid AND time. but you also need a global variable: new IsJailed[MAX_PLAYERS]; so if you want to block certain things you do: if(IsJailed[playerid]) return SendClientMessage(playerid,COLOR_RED,"You cannot blablabla when in jail."); and when you jail the player: IsJailed[playerid = 1; when you unjail same thing with 0 |
Ok it works Thanks
But how do i make it soo.
i can jail a person like this
/jail [id]