Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (strcmp(cmd, "l", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_GREEN, "Error: Please log-in to this account.");
- else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN,"Usage: /c local [Text].");
- else if (PlayerInfo[playerid][Spawned] != 1) SendClientMessage(playerid, COLOR_GREEN, "Error: Please spawn to use this command.");
- else
- {
- new i;
- for(i = 0; i < MAX_PLAYERS; i++)
- {
- new Float:lX,Float:lY,Float:lZ;
- GetPlayerPos(playerid,lX,lY,lZ);
- if(PlayerToPoint(15.0,i,lX,lY,lZ))
- {
- format(str,sizeof(str),"%s says: %s.",gPlayers[playerid],cmdtext[2]);
- SendClientMessage(i,COLOR_YELLOW,str);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement