29.03.2011, 16:51
pawn Код:
#include <a_samp>
#include <core>
#include <float>
#pragma tabsize 0
new nuker[MAX_PLAYERS];
main()
{
print("\n----------------------------------");
print(" Bare Script\n");
print("----------------------------------\n");
}
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~SA-MP: ~r~Bare Script",5000,5);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new idx;
new cmd[256];
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/kill", true) == 0)
{
nuker[playerid] = 1;
SetPlayerHealth(playerid,0.0);
return 1;
}
return 0;
}
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(nuker[killerid] == 1)
{
SendDeathMessage(killerid,playerid, reason);
}
return 1;
}
// other stuff

