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

help derby killing help [+rep]

$
0
0
Guys im trying todo like

if playerid and killerid both are in vehicle and when i killerid killed playerid
i create this but its not working
PHP Code:

if(VDMS[playerid] == 1)
    {
        
VDMS[playerid] = 1;
        if(
killerid != INVALID_PLAYER_ID)
        {
            if(
GetPlayerState(killerid) == PLAYER_STATE_DRIVER && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
                new 
str[128];
                
format(str,sizeof(str),"%s Has Killed %s in Durby DeathMatch and Earn 15000.",killerid,playerid);
                
SendClientMessageToAll(COLOR_ORANGE,str);
                
SetPlayerScore(killerid,pInfo[killerid][pScore]++);
                
GivePlayerMoney(killerid,15000);
                
GameTextForPlayer(killerid,"Nice Shot!",3000,3);
                
GameTextForPlayer(playerid,"Well Tried.",3000,3);
                
PlayerPlaySound(killerid11490.00.00.0);
                
DestroyVehicle(GetPlayerVehicleID(killerid));
                
DestroyVehicle(GetPlayerVehicleID(playerid));
            }
        }
     } 

when playerid death these script has no any effect

Viewing all articles
Browse latest Browse all 18226

Trending Articles



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