Problem with onplayertext
#1

Hello im stuck with a problem ive tryed to fix but can't seem to fix it
PHP Code:
case 01:
        {
        if(
AdminDuty[playerid] == 1)
                 
format(stringsizeof(string), "%s says: (( %s ))"sendernametext);
            else
                if(
PlayerInfo[playerid][pMask] == 1) { format(stringsizeof(string), "Stranger says: %s",text); }
                else { 
format(stringsizeof(string), "%s says: %s"sendernametext); }
            
ProxDetector(20.0playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
        } 
PHP Code:
if(AdminDuty[playerid] == && PlayerInfo[playerid][pAccent] != 25) {
        
format(stringsizeof(string), "%s says: (( %s )) "sendernametext);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        
SetPlayerChatBubble(playeridtextCOLOR_WHITE20.05000);
    } else {
        if(
IsPlayerInAnyVehicle(playerid) && IsVehicleWindowsDown[vehicleid] == 1) { //Windows closed.
            
format(stringsizeof(string), "[Windows Closed] %s says: %s"sendernametext);
            
ProxDetector(3.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        } else {
            
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
        } 
im trying to put the IsVehicleWindowsDown onto the first code that i use
Reply
#2

Ill Rep everyone who Trys to help or does help
Reply
#3

Code:
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),string);
	    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;
}
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)