SA-MP Forums Archive
/crash?! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /crash?! (/showthread.php?tid=133369)



/crash?! - ScottCFR - 12.03.2010

Ok, so i was scripting a /crash message and it doesn't work. I was told bya good friend that 0.3a fixed the object error. Is there any way to still use the /crash command?


Re: /crash?! - Miguel - 12.03.2010

pawn Код:
GameTextForPlayer(playerid, "~", 1, 5);



Re: /crash?! - ScottCFR - 12.03.2010

So is this right


Код:
if(strcmp,("/crash", cmdtext, true, 10) == 0)
{
	GameTextForPlayer(playerid, "~". 1, 5);
}
Sorry i confused myself and i can't remember how to do the rest.


Re: /crash?! - ScottCFR - 12.03.2010

Ok, I've been trying a couple days to make it but nothin works.


Re: /crash?! - Backwardsman97 - 12.03.2010

I thought if you just created a non-existent object it would crash? Try creating one of these 301-319. Last time I checked and used these, it doesn't just crash, it freezes up the game.

pawn Код:
if(strcmp,("/crash", cmdtext, true) == 0)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid,x,y,z);
    CreatePlayerObject(playerid,301,x,y,z,0,0,0);
    return 1;
}
Idk if you need to create it at the player's coordinates but it can't hurt.


Re: /crash?! - ScottCFR - 12.03.2010

Thanks man
But when i compile i get this:
Код:
(944) : error 076: syntax error in the expression, or invalid function call



Re: /crash?! - Torran - 12.03.2010

Quote:
Originally Posted by ScottCFR
Thanks man
But when i compile i get this:
Код:
(944) : error 076: syntax error in the expression, or invalid function call
I tried it and i dont get that?


Re: /crash?! - adsy - 12.03.2010

Put a player in a vehicle as a passenger that doesnt have a passenger seat

on trying to exit the player will crash


Re: /crash?! - ScottCFR - 12.03.2010

Sorry for askin i got an insane headache, How do i put the player in a car as passenger?


Re: /crash?! - MaykoX - 12.03.2010

Quote:
Originally Posted by ScottCFR
Sorry for askin i got an insane headache, How do i put the player in a car as passenger?
https://sampwiki.blast.hk/wiki/Function:PutPlayerInVehicle