SA-MP Forums Archive
[Help] Crash Command - 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: [Help] Crash Command (/showthread.php?tid=264309)



[Help] Crash Command - TeRmi[N]aTor - 25.06.2011

Hello , i have in my mod this command :
Код HTML:
dcmd_crash(playerid,params[])
{
	if(AccInfo[playerid][Level] >= 4)
	{
	    if(!strlen(params)) return
		SendClientMessage(playerid, LIGHTBLUE2, "Usage: /crash [PlayerID]") &&
		SendClientMessage(playerid, orange, "Function: Will Crash a specified player");

		new player1 = strval(params), string[128], Float:X,Float:Y,Float:Z;
		if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
		return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
		{
   			SendCommandToAdmins(playerid,"Crash");
	        GetPlayerPos(player1,X,Y,Z);
	   		new CrashObj = CreatePlayerObject(player1,11111111,X,Y,Z,0,0,0);
			DestroyObject(CrashObj);
			format(string, sizeof(string), "|- You have Crashed \"%s's\" -|", pName(player1));
			return SendClientMessage(playerid,blue, string);
	    }
		else return ErrorMessages(playerid, 2);
	}
	else return ErrorMessages(playerid, 1);
}
when i do this command in the server its give me massage like this :


what i need to do ??
plz !



Re: [Help] Crash Command - Skaizo - 25.06.2011

the object id 11111111 not exist


Re: [Help] Crash Command - FireCat - 25.06.2011

Lol, that's from LuxAdmin or something right?
It's really suposed to do that. It's not a bug.


Re: [Help] Crash Command - TeRmi[N]aTor - 25.06.2011

yes , its from luxadmin... i just try him on my mod on the first time ....
but whats wrong with this command ??



Re: [Help] Crash Command - FireCat - 25.06.2011

Nothing is wrong with it.
It's really like that.