I need help
#8

EDIT: Fireburn fixed it .

This can be locked .

The code if anybody could use it: (Thanks to Fireburn!)

Quote:

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new numero = GetPlayerVehicleID(playerid);
if(numero == BallasVeh)
{
if(gTeam[playerid] == TEAM_BALLA)
{
SendClientMessage(playerid,0xFF0000AA, "You can't steal your own gang car!");
RemovePlayerFromVehicle(playerid);
}
else if(gTeam[playerid] == TEAM_GROVE)
{
SetPlayerCheckpoint(playerid, 2412.2483,-1854.1670,1.1559, 6.5);
SendClientMessage(playerid, 0x33AA33AA, "You have stolen Ballas' gang vehicle! Get it to the checkpoint!");
SendClientMessageToAll(0xFF0000AA, "*** Somebody is stealing Ballas' gang vehicle! ***");
}
}
else if(numero == GroveVeh)
{
if(gTeam[playerid] == TEAM_GROVE)
{
SendClientMessage(playerid,0xFF0000AA, "You can't steal your own gang car!");
RemovePlayerFromVehicle(playerid);
}
else if(gTeam[playerid] == TEAM_BALLA)
{
SetPlayerCheckpoint(playerid, 2412.2483,-1854.1670,1.1559, 6.5);
SendClientMessage(playerid, 0x33AA33AA, "You have stolen the Grove's gang vehicle! Get it to the checkpoint!");
SendClientMessageToAll(0xFF0000AA, "*** Somebody is stealing the Grove's gang vehicle! ***");
}
}
}
else if(newstate == PLAYER_STATE_ONFOOT)
{
DisablePlayerCheckpoint(playerid);
}
return 1;
}

Reply


Messages In This Thread
I need help - by GTA_Rules - 09.03.2009, 18:03
Re: I need help - by MenaceX^ - 09.03.2009, 18:19
Re: I need help - by GTA_Rules - 09.03.2009, 18:43
Re: I need help - by GTA_Rules - 09.03.2009, 19:53
Re: I need help - by GTA_Rules - 10.03.2009, 05:38
Re: I need help - by [RP]Rav - 10.03.2009, 08:29
Re: I need help - by ICECOLDKILLAK8 - 10.03.2009, 08:39
Re: I need help - by GTA_Rules - 10.03.2009, 18:07

Forum Jump:


Users browsing this thread: 1 Guest(s)