Mellnik

Untitled

Jun 9th, 2014
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. 1. player enters cmd
  2. 2. looping through ALL amxes and check if CMD exists, break as soon as found
  3. 3. call OnPlayerRequestCommand(playerid, cmdtext[], exists) BUT ONLY in GAMEMODE
  4. 4. if return == 0 do nothing, if return == 1 call CMD from step 2
  5.  
  6. 1. player enters cmd
  7. 2. check GAMEMODE if cmd exists if yes go to step 5
  8. 3. loop through all amxes check if cmd exists, break if found
  9. 4. if cmd not found call CALLBACK in gamemode exists = false
  10. 5. check if CALLBACK exists where cmd was found
  11. 6. if return == 0 do nuttin, if return == 1 call CMD in same AMX
Advertisement
Add Comment
Please, Sign In to add comment