13.06.2010, 21:27
Im not getting dcmd.. and every tutorial ive read have the same output: i don't understand it.
Could somone make a good example how dcmd works? i need to use it in many cases but for now i need it to change a players job.
example structure:
Could somone make a good example how dcmd works? i need to use it in many cases but for now i need it to change a players job.
example structure:
Код:
dcmd_job(playerid, params[]) { If cmd contains "criminal" check for Money if its under the limit then dont let the player get the job If cmd is wrong, send message with usage. If players job isnt citizen send message that player have to resign. If cmd = /job criminal and money is above the limit and player is citizen, let the player get the criminal job. Set job and kick. }