27.11.2010, 22:09
try this one...i guess its not perfect but maybe it will be enough:
try this and tell me if this works :\
pawn Код:
new Float:PoX,PoY,PoZ,start=1;
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmd,"/ad",true))
{
SetPlayerHealth(playerid,100);
SetPlayerPos(playerid,PoX,PoY,PoZ);
ClearAnimations(playerid);
return TogglePlayerControllable(playerid,1);
}
return 0;
}
public OnPlayerSpawn(playerid)
{
if(first!=1)
{
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,1,0);
TogglePlayerControllable(playerid,0);
SetPlayerHealth(playerid,99999);
return SetPlayerPos(playerid,PoX,PoY,PoZ);
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
first=0;
GetPlayerPos(playerid,PoX,PoY,PoZ);
return 1;
}