[Solved]More Help! With GodCar Funtion
#1

Hiya!!!

Код:
public GodCar(playerid)
{
  if(GetPlayerScore(playerid) >= 35)
	{
		SetVehicleHealth(playerid, 1000);
`    return 1;
		{
	{
{

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText(" DeathMatch");
	SendRconCommand("mapanme Total DM");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	SetTimer("GodCar",500, true);
	return 1;
}
This is the function that automatically turns godcar on for people who have more than 35 kills! But when i compile i get 26 random errors! If there is something wrong with this,plz tell me!!!
Reply
#2

Done.
pawn Код:
public GodCar(playerid)
{
  if(GetPlayerScore(playerid) >= 35)
    {
        SetVehicleHealth(playerid, 1000);
    }
    return true;
}

public OnGameModeInit()
{
    SetGameModeText(" DeathMatch");
    SendRconCommand("mapname Total DM");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    SetTimer("GodCar",500, true);
    return 1;
}
Reply
#3

Thnx Dude, I needed this!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)