11.06.2017, 07:17
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
when playerid death these script has no any effect
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(killerid, 1149, 0.0, 0.0, 0.0);
DestroyVehicle(GetPlayerVehicleID(killerid));
DestroyVehicle(GetPlayerVehicleID(playerid));
}
}
}