Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //SOTTO ONPLAYERCOMMANDTEXT
- if(strcmp("/c", cmd, true) == 0)
- {
- //Se non lo hai in alto = new string[256];
- if(!DoesPlayerHasTag(playerid,"[IFS]")) return SendClientMessage(playerid, -1, "[ERRORE]: Devi essere membro del clan per poter chattare nel chat del clan!");
- {
- new tmp[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, -1, "[ERRORE:] Inserisci il messagio");
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), "[IFS-CLAN-CHAT]%s:%s", pname, cmdtext[2]);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- }
- }
- return 1;
- }
- //FUORI DA TUTTO
- stock DoesPlayerHasTag(playerid,tag[]) {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- return (strfind(name,tag,true) != -1);
- }
Advertisement
Add Comment
Please, Sign In to add comment