PDA

View Full Version : Problem with onplayertext


IggyKlipz
14/06/2017, 04:08 PM
Hello im stuck with a problem ive tryed to fix but can't seem to fix it
case 0, 1:
{
if(AdminDuty[playerid] == 1)
format(string, sizeof(string), "%s says: (( %s ))", sendername, text);
else
if(PlayerInfo[playerid][pMask] == 1) { format(string, sizeof(string), "Stranger says: %s",text); }
else { format(string, sizeof(string), "%s says: %s", sendername, text); }

ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE 3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0 ,5000);
}

if(AdminDuty[playerid] == 1 && PlayerInfo[playerid][pAccent] != 25) {
format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 20.0, 5000);
} else {
if(IsPlayerInAnyVehicle(playerid) && IsVehicleWindowsDown[vehicleid] == 1) { //Windows closed.
format(string, sizeof(string), "[Windows Closed] %s says: %s", sendername, text);
ProxDetector(3.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
} else {
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0 ,5000);
}

im trying to put the IsVehicleWindowsDown onto the first code that i use

IggyKlipz
14/06/2017, 04:10 PM
Ill Rep everyone who Trys to help or does help

Mohaaaaaaaaaaa
14/06/2017, 05:02 PM
switch (Player[playerid][Aonduty])
{
case 0:
{
new string[128];
format(string,sizeof(string),"%s [%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("%s [%i]: %s", GetName(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),st ring);
return 0;
}
case 1:
{
new aName[MAX_PLAYER_NAME], string2[128];
GetPlayerName(playerid, aName,sizeof(aName));
format(string2,sizeof(string2),"Admin %s: %s",aName,text);
printf(string2);
SendClientMessageToAll(COLOR_PINK,string2);
return 0;
}
}
return 1;
}

IggyKlipz
14/06/2017, 11:36 PM
Hmm thats okay but its a case of the accent then they player say when on or off admin duty ... but the car window was the thing i was needing added