Temp godmode at spawn?
#5

Thanks, it's compiled and working now

One last thing:

Код:
public OnPlayerCommandText(playerid, cmdtext[0])
{
	{
  	if (strcmp("/kill", cmdtext, true, 5) == 0)
  	{
    	SetPlayerHealth(playerid, 0.0);
    	return 1;
  		}
  
  	if (strcmp("/r", cmdtext, true))
  		{
    	new vehicleid = GetPlayerVehicleID(playerid);
    	RepairVehicle(vehicleid);
    	return 1;
		}
		else
		{
		  return SendClientMessage(playerid,COLOR_RED, "You're not in a vehicle!");
		}
	}
	return 1; //EDIT: I keep getting an unreachable code warning here. Why is it saying that?
}
Those are my two little commands, /kill works but /r doesn't, it always says that I'm not in a vehicle, even though I am when I try use it. Not sure how to fix that

Halp plz
Reply


Messages In This Thread
Temp godmode at spawn? - by biltong - 20.01.2010, 19:19
Re: Temp godmode at spawn? - by Joe Staff - 20.01.2010, 19:26
Re: Temp godmode at spawn? - by biltong - 23.01.2010, 09:28
Re: Temp godmode at spawn? - by llama - 23.01.2010, 10:09
Re: Temp godmode at spawn? - by biltong - 23.01.2010, 10:34
Re: Temp godmode at spawn? - by llama - 23.01.2010, 10:40
Re: Temp godmode at spawn? - by biltong - 23.01.2010, 10:47
Re: Temp godmode at spawn? - by llama - 23.01.2010, 10:55
Re: Temp godmode at spawn? - by bluray - 23.01.2010, 11:44
Re: Temp godmode at spawn? - by llama - 23.01.2010, 11:52

Forum Jump:


Users browsing this thread: 10 Guest(s)