27.07.2009, 18:20
Quote:
Originally Posted by killdahobo99
I'm trying to learn how to add teams from the sa-mp wiki.
I've followed everything correctly and its all fine. What i want to do now is, add certain commands for certain teams...How do i do that tho? Heres my pastebin: http://pastebin.com/m38bc3b5c On "OnPlayerCommandText" i want to add say...."/help" and it will display it only for 1 team how can i do that with what i have got so far in my pastebin? Thanks for the help |
Код:
if (strcmp("/help", cmdtext, true, 10) == 0) { if(gTeam[playerid]== Team_Grove) { // bla bla bla..C } else { // bla bla bla } return 1; }