problem with script
#1

ok i posted a request to fix this a long time ago no one ever helped so im going to request a fix again.
and to al the other muslims like me happy
Quote:

if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
new VehicleID = GetPlayerVehicleID(playerid);

if(VehicleID == xxannajpxx)
{

if(strcmp(PlayerName(playerid), "Anna_Cortez", true) != 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You dare touch The car of Anna_Cortez? PERISH IN HELL!!! ");
SendClientMessage(playerid, COLOR_RED, "Nucleur Warheads provided by U.S. have been automatically targeted at your head");
SetTimer("dday", 10000, false);
}

}
}

return 1;
}
public dday(playerid)
{
{
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z, 0, 1.0);
SetPlayerHealth(playerid, 0);
}
}
return 1;
}

its explodes and kills id 0 not the person getting in car
Reply
#2

pawn Код:
SetTimerEx("dday", 10000, false, "d", playerid);
Reply
#3

Change:
pawn Код:
SetTimer("dday", 10000, false);
To:
pawn Код:
SetTimerEx("dday", 10000, false, "d", playerid);

EDIT: MadeMan was faster. :/
Reply
#4

thanks gonna test ASAP when a friend gets on so i can ginny pig him
Reply
#5

Also don't forget to use [.pawn][./pawn] or [.code][./code] instead of [.quote][./quote] Don't use the " . " they are just there so they don't disappear
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)