help derby killing help [+rep] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help derby killing help [+rep] (
/showthread.php?tid=635643)
help derby killing help [+rep] -
Aldrago - 11.06.2017
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(killerid, 1149, 0.0, 0.0, 0.0);
DestroyVehicle(GetPlayerVehicleID(killerid));
DestroyVehicle(GetPlayerVehicleID(playerid));
}
}
}
when playerid death these script has no any effect
Re: help derby killing help [+rep] -
Kane - 11.06.2017
If
PHP код:
if(VDMS[playerid] == 1)
{
VDMS[playerid] = 1;
VDMS is already true, why are you resetting it?
Re: help derby killing help [+rep] -
Aldrago - 11.06.2017
b/c when onplayerdeath its become 0 idk why so thats why i add this
but thats not my Q