help derby killing help [+rep]
#1

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 код:
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
Reply
#2

If
PHP код:
if(VDMS[playerid] == 1
    { 
        
VDMS[playerid] = 1
VDMS is already true, why are you resetting it?
Reply
#3

b/c when onplayerdeath its become 0 idk why so thats why i add this
but thats not my Q
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)