Advertisement
Guest User

Untitled

a guest
Aug 17th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. else if (strcmp(cmd, "l", true) == 0)
  2. {
  3. tmp = strtok(cmdtext, idx);
  4. if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_GREEN, "Error: Please log-in to this account.");
  5. else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN,"Usage: /c local [Text].");
  6. else if (PlayerInfo[playerid][Spawned] != 1) SendClientMessage(playerid, COLOR_GREEN, "Error: Please spawn to use this command.");
  7. else
  8. {
  9. new i;
  10. for(i = 0; i < MAX_PLAYERS; i++)
  11.  
  12. {
  13. new Float:lX,Float:lY,Float:lZ;
  14. GetPlayerPos(playerid,lX,lY,lZ);
  15. if(PlayerToPoint(15.0,i,lX,lY,lZ))
  16.  
  17. {
  18. format(str,sizeof(str),"%s says: %s.",gPlayers[playerid],cmdtext[2]);
  19. SendClientMessage(i,COLOR_YELLOW,str);
  20.  
  21. }
  22.  
  23. }
  24.  
  25. }
  26. return 1;
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement