Commands Aren't Working
#1

I have this script:
Код:
#include <a_samp>

public OnPlayerConnect(playerid)
{
	SetPVarInt(playerid,"TimeConnect",GetTickCount());
	return 1;
}

public OnPlayerDisconnect(playerid,reason)
{
	if(GetTickCount() - GetPVarInt(playerid,"TimeConnect") < 1000) BanEx(playerid,"Flood");
	return 1;
}
And banlist looks:
Код:
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
178.40.207.23 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
255.255.255.255 [20/06/12 | 13:54:58] [SkiLLer_off_SaWn] - Flood
If baned in callback disconnect. Callback disconecct is calling angain and again.
Reply
#2

Where have I gone wrong with the /kill and /healme commands?
It all compiles with 0 errors in Pawno, but when I go in game the commands do not work at all.
Here is the script up until the two Commands.
I'm new to this so any feedback is good feedback

PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Blank Filterscript by your name here");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Blank Gamemode by your name here");
    print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Free-Roam");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(511958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(521958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(991958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(1901958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(1951958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(2871958.37831343.157215.3746269.1425243000000);
    
AddPlayerClass(2861958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(1601958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(1991958.37831343.157215.3746269.1425000000);
    
AddPlayerClass(861958.37831343.157215.3746269.1425391257022100);
    
AddPlayerClass(2851958.37831343.157215.3746269.1425411002430000);
    
AddStaticVehicle(4512148.9221,1398.3856,10.8125,358.419913);
    
AddStaticVehicle(411,2148.7646,1408.6206,10.5266,179.006313);
    
AddStaticVehicle(559,2145.6157,1398.1984,10.5410,359.9603,1,3);
    
AddStaticVehicle(506,2142.2366,1408.8340,10.5436,177.3478,1,3);
    
AddStaticVehicle(477,2142.3567,1398.0377,10.5396,1.8994,1,3);
    
AddStaticVehicle(602,2139.0708,1408.6914,10.5616,178.6824,1,3);
    
AddStaticVehicle(429,2139.3052,1398.3080,10.5923,358.3797,1,3);
    
AddStaticVehicle(496,2135.9402,1398.2108,10.5506,359.3734,1,3);
    
AddStaticVehicle(402,2132.8257,1398.1233,10.5402,359.9611,1,3);
    
AddStaticVehicle(451,2129.5906,1398.2445,10.5660,359.3764,1,3);
    
AddStaticVehicle(541,2126.4731,1398.4779,10.6058,359.5974,1,3);
    
AddStaticVehicle(415,2123.1138,1398.2830,10.5756,0.3441,1,3);
    
AddStaticVehicle(589,2119.8354,1398.2578,10.5670,0.1331,1,3);
    
AddStaticVehicle(587,2116.7295,1397.9950,10.5435,359.9134,1,3);
    
AddStaticVehicle(565,2113.6299,1398.2156,10.5592,358.2676,1,3);
    
AddStaticVehicle(494,2110.2925,1398.2155,10.5551,359.0697,1,3);
    
AddStaticVehicle(502,2135.9819,1408.6733,10.5681,180.2724,1,3);
    
AddStaticVehicle(503,2132.6726,1408.6711,10.5583,179.8005,1,3);
    
AddStaticVehicle(603,2129.4158,1408.7997,10.5478,179.3090,1,3);
    
AddStaticVehicle(475,2126.2043,1408.6359,10.5746,181.2665,1,3);
    
AddStaticVehicle(400,2123.0730,1408.5319,10.5955,179.0839,1,3);
    
AddStaticVehicle(424,2119.9060,1408.6320,10.5774,180.5481,1,3);
    
AddStaticVehicle(568,2116.6541,1408.6349,10.5749,180.1152,1,3);
    
AddStaticVehicle(495,2113.5420,1408.5044,10.6038,179.5720,1,3);
    
AddStaticVehicle(422,2110.2957,1408.6143,10.5839,179.2406,1,3);
    
AddStaticVehicle(480,2145.5647,1408.5457,10.5248,179.5205,1,3);
    
// GARAGE ROOFTOP
    
CreateObject(33992167.8000488281141613.199999809265000);
    
CreateObject(33992156.100097656314168.6000003814697000);
    
CreateObject(39342179.80004882811410.699951171915.5000);
    
CreateObject(35262175.69995117191406.099975585915.5000);
    
CreateObject(35262183.69995117191415.099975585915.5000);
    
CreateObject(36662174.60009765631417.099975585916000);
    
CreateObject(36662174.60009765631414.599975585916000);
    
CreateObject(9702176.89990234381417.199951171916000);
    
CreateObject(97021811417.199951171916000);
    
CreateObject(97021851417.199951171916000);
    
CreateObject(9702187.10009765631415.09997558591600270.5);
    
CreateObject(38812222.51406.099975585917.2999992370610090);
    
CreateObject(182572212.10009765631416.515.500132);
    
CreateObject(352622171400.099975585915.5000);
    
CreateObject(35262205.69995117191400.099975585915.5000);
    
CreateObject(35262194.89990234381400.099975585915.5000);
    
CreateObject(35262185.60009765631399.900024414115.5000);
    
CreateObject(36662174.19995117191399.900024414116000);
    
CreateObject(136222101412.516.10000038147000);
    
CreateObject(16962170.10009765631396.599975585916.50090);
    
CreateObject(16962170.10009765631391.516.50090);
    
CreateObject(16962170.10009765631388.599975585916.50090);
    
//DEMOLITION DERBY
    
CreateObject(3749, -0.200000002980231465.518.39999961853000);
    
CreateObject(3265, -5.69999980926511461.514.1999998092650832);
    
CreateObject(9879.60000038146971466.099975585913.39999961853000);
    
CreateObject(98721.100000381471466.099975585913.399999618530020);
    
CreateObject(98732.2999992370611469.900024414113.399999618530025.9951171875);
    
CreateObject(98742.7999992370611474.800048828113.39999961853357.50.25024414062530.254638671875);
    
CreateObject(74446.7000007629391476.300048828110.300000190735000);
    
CreateObject(74443.51475.510.300000190735034226);
    
CreateObject(74438.2000007629391473.699951171910.300000190735017.99890136718825.999145507813);
    
CreateObject(74434.2000007629391471.40002441419.199999809265115.19784545898418.67141723632820.93115234375);
    
CreateObject(74429.600000381471470.19995117199.199999809265110.27108764648468.1856689453133.978515625);
    
CreateObject(74428.2999992370611469.300048828111.30000019073510.26672363281368.181152343759.9770202636719);
    
CreateObject(74550.2000007629391479.512.60000038147000);
    
CreateObject(74452.2999992370611480.900024414112.699999809265000);
    
CreateObject(98753.0999984741211480.900024414113.39999961853357.495483398440.997924804687550.283660888672);
    
CreateObject(98760.5999984741211490.199951171913.199999809265357.49511718750.994262695312550.278930664063);
    
CreateObject(74556.2999992370611484.599975585912.300000190735000);
    
CreateObject(74559.7000007629391488.699951171912000);
    
CreateObject(74562.51491.599975585912000);
    
CreateObject(74564.9000015258791494.099975585912000);
    
CreateObject(74567.0999984741211497.900024414112000);
    
CreateObject(1612170.6999969482421529.300048828111.80000019073500342);
    
CreateObject(16133, -31.100000381471564.099975585911.6999998092650358326);
    
CreateObject(16133, -46.7999992370611517.900024414111.6999998092650357.99499511719349.99731445313);
    
CreateObject(16133, -28.7999992370611482.699951171911.6999998092650357.9895019531331.996948242188);
    
CreateObject(16133, -49.7999992370611501.699951171911.6999998092650357.9895019531321.996948242188);
    
CreateObject(987, -21.7000007629391465.513.39999961853000);
    
CreateObject(180666.51463.400024414117000);
    
CreateObject(3364, -61568.300048828111.199999809265356050);
    
CreateObject(1630243.7000007629391576.599975585918.10000038147000);
    
CreateObject(1612154.900001525879156011.8000001907350011.998901367188);
    
CreateObject(184514.51568.099975585912.3000001907350216);
    
CreateObject(16302, -17.399999618531580.300048828118.10000038147000);
    
CreateObject(336316.2999992370611568.900024414111.80000019073500336);
    
CreateObject(8302, -22.600000381471518.599975585913.5000);
    
CreateObject(13590301487.51300318);
    
CreateObject(326931.600000381471533.511000);
    
CreateObject(143124.899999618531523.900024414112.1999998092653540314);
    
CreateObject(8886, -15.100000381471492.900024414115.1000003814700318);
    
CreateObject(2510, -8.19999980926511489.099975585912.1000003814700110);
    
CreateObject(1084, -131488.199951171912.1999998092653.990234375184.009765625155.72058105469);
    
AddStaticVehicle(494,-8.9861,1483.0891,12.4771,302.3528,1,3);
    
AddStaticVehicle(504,31.8037,1505.7435,12.4771,54.7216,1,3);
    
AddStaticVehicle(504,-20.8032,1553.6086,12.4771,204.9211,1,3);
    
AddStaticVehicle(494,22.1242,1562.0737,12.4801,133.6799,1,3);
    
AddStaticVehicle(504,57.8992,1518.4475,12.4771,93.1178,1,3);
    
AddStaticVehicle(504,22.6137,1470.6833,13.4535,77.8137,1,3);
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid2155.1587,1403.4939,10.8203);
    
SetPlayerCameraPos(playerid2158.6230,1403.5480,10.8203);
    
SetPlayerCameraLookAt(playerid2155.1587,1403.4939,10.8203);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
SetPlayerPos(playerid2168.1968,1403.6904,10.8203);
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
    return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/kill"cmdtexttrue) == 0)
    {
        
SetPlayerHealth(playerid0.0);
        return 
1;
    }
    
    if(
strcmp("/healme"cmdtexttrue) == 0)
    {
        
SetPlayerHealth(playerid,100);
        
SetPlayerArmour(playerid,100);
        return 
1;
    }
    return 
0;

Reply
#3

Only these two cmds are not working?
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Kill", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid,0.0);
        SendClientMessage(playerid, 0x000000FF, "You typed /kill there fore you are killed");

        return 1;
    }
    return 0;
}
You can use this one for /kill this works perfectly

pawn Код:
{
    if (strcmp("/Heal", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid,100);
        SendClientMessage(playerid, 0x000000FF, "You typed /heal there fore your health has been set to 100.");

        return 1;
    }
You can use this one for /heal
Reply
#5

Quote:
Originally Posted by [xB]Lordz
Посмотреть сообщение
Only these two cmds are not working?
Well those are the only two commands I have scripted, any other commands are from filterscripts :P
I'm new to scripting.

And thanks, I'll try adding in those into the script and I'll report back.
Reply
#6

No it's still not working
I'm not sure if there is something wrong with my script, I only just added the dcmd define today because I wasn't sure if it was needed or not :P
Reply
#7

https://sampforum.blast.hk/showthread.php?tid=352296 this is a fully teted gm it contains these cmds remove un neccasary ones and use others
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)