Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:setbietdanh(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 4)
- {
- new string[128], giveplayerid, bietdanh[MAX_PLAYER_NAME];
- if(sscanf(params, "us[24]", giveplayerid, bietdanh)) return SendClientMessageEx(playerid, COLOR_GREY, "SU DUNG: /setpbiethieu [player] [ten biet hieu]");
- if(IsPlayerConnected(giveplayerid))
- {
- strcat((PlayerInfo[playerid][pBietdanh][0] = EOS, PlayerInfo[playerid][pBietdanh]), bietdanh);
- format(string,sizeof(string),"%s da dat biet hieu cho %s thanh: ā%sā", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), bietdanh);
- SendClientMessage(giveplayerid,COLOR_CYAN,string);
- SendClientMessage(playerid,COLOR_CYAN,string);
- }
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GRAD1, "Ban khong duoc phep su dung lenh nay.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement