format(string, sizeof(string), "* %s takes his bag of his back and takes out a %s.", sendername, gunname); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
if(strcmp(cmd, "/me", true) == 0){
new text[512], tmp[512], me_name[MAX_PLAYER_NAME];
tmp = strrest(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, COLOR_GREY, "USAGE: /me [text]");
return 1;
}
GetPlayerName(playerid, me_name, sizeof(me_name));
format(text, sizeof(text), "%s %s", me_name, tmp);
ProxDetector(10.0, playerid, text, COLOR_PINK, COLOR_PINK, COLOR_PINK, COLOR_PINK, COLOR_PINK);
return 1;
}
if(strcmp(cmd, "/do", true) == 0){
new text[512], tmp[512], do_name[MAX_PLAYER_NAME];
tmp = strrest(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, COLOR_GREY, "USAGE: /do [text]");
return 1;
}
GetPlayerName(playerid, do_name, sizeof(do_name));
format(text, sizeof(text), "%s ((%s))", tmp, do_name);
ProxDetector(10.0, playerid, text, COLOR_PINK, COLOR_PINK, COLOR_PINK, COLOR_PINK, COLOR_PINK);
return 1;
}
OnPlayerWeaponChange(playerid, newweapon, oldweapon)
OnPlayerWeaponChange(playerid, newweapon, oldweapon)
{
new gunname[25];
new string[128];
GetWeaponName(newweapon, gunname);//Make it yourself
format(string, sizeof(string), "* %s takes his bag of his back and takes out a %s.", GetPlayerName(playerid), gunname);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
Originally Posted by Dark_Kostas
Use THIS include and put it inside
pawn Код:
pawn Код:
|