Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmdtext,"/warn",true)==0)
- {
- if(InfoPlayer[playerid][LivelloAdmin]>0)
- {
- if(strlen(tmp))
- {
- if(!strlen(tmp2))tmp2="Nessun motivo";
- id=strval(tmp);
- if(IsPlayerConnected(id))
- {
- if(InfoPlayer[id][Warning]<MAX_WARNING)
- {
- GetPlayerName(playerid,nome,500);
- GetPlayerName(id,nome2,500);
- format(stringa,500,"[Dadmin]%s ha warnato %s MOTIVO:%s %d/%d",nome,nome2,tmp,InfoPlayer[id][Warning],MAX_WARNING);
- SendClientMessageToAll(COLOR_RED,stringa);
- print(stringa);
- InfoPlayer[playerid][Warning]++;
- }
- else
- {
- GetPlayerName(playerid,nome,500);
- GetPlayerName(id,nome2,500);
- format(stringa,500,"[Dadmin]%s ha warnato %s MOTIVO:%s %d/%d",nome,nome2,tmp,InfoPlayer[id][Warning],MAX_WARNING);
- SendClientMessageToAll(COLOR_RED,stringa);
- print(stringa);
- InfoPlayer[playerid][Warning]=0;
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Questo player non è connesso");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Devi inserire un'id!");
- }
- }
- else
- {
- ErroriLivello(playerid,1);
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment