SA-MP Forums Archive
help - 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)
+--- Thread: help (/showthread.php?tid=610259)



help - GeneralAref - 21.06.2016

hi.i have a problem with these commands.when i using their i crashed from server and server say you are banned.please help me.
Код:
CMD:respawncars(playerid,params[]){
	#pragma unused params
	if(PlayerData[playerid][AdminLevel]<3&&!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_RED,"You are not authorized to use this command.");
	SendClientMessageToAdminsEx(COLOR_DEEPSKYBLUE,"Admin %s(%d) (lvl:%d) used RESPAWNCARS.",PlayerName(playerid),playerid,PlayerData[playerid][AdminLevel]);
	SendClientMessageToAll(COLOR_BLUE,"Admin %s(%d) has respawned unused vehicles.");
	for(new i=0;i<MAX_VEHICLES;i++){
	    if(!IsValidVehicle(i))break;
		if(IsVehicleEmpty(i))SetVehicleToRespawn(i);}
	return 1;}
	
CMD:restartserver(playerid,params[]){
	#pragma unused params
	if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_RED,"You are not authorized to use this command.");
	SendClientMessageToAdminsEx(COLOR_DEEPSKYBLUE,"Admin %s(%d) (lvl:%d) used RESTARTSERVER.",PlayerName(playerid),playerid,PlayerData[playerid][AdminLevel]);
	SendClientMessageToAll(COLOR_BLUE,"Admin %s(%d) has restarted the server.");
	SendRconCommand("gmx");
	return 1;}



Re: help - Konstantinos - 21.06.2016

Код:
SendClientMessageToAll(COLOR_BLUE,"Admin %s(%d) has respawned unused vehicles.");
Код:
SendClientMessageToAll(COLOR_BLUE,"Admin %s(%d) has restarted the server.");
Specifiers but no arguments.


Re: help - GeneralAref - 21.06.2016

thanks