Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Problem with onplayertext

$
0
0
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

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>