29.12.2011, 18:48
(
Последний раз редактировалось Gooday; 29.12.2011 в 20:17.
)
pawn Код:
CMD:createfire(playerid,params[])
{
new number, atrb = atblock[playerid];
new Float:X, Float:Y, Float:Z, Float:A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
if(atblock[playerid] < MAX_ROADBLOCKS)
{
block[atrb][playerid] = CreateObject(18688, X, Y+1, Z-0.5,0,0,A);
GameTextForPlayer(playerid,"~w~Fire ~b~Created!",3000,1);
#if SEND == true
GetPlayerName(playerid,pName,32);
format(string,sizeof (string)," %s added a roadblock(%i).",pName,number);
SendClientMessageToAll(COLOR_GREEN, string);
#else
SetTimerEx("ExpireRoadblock", EXPIRE_MINUTES*60000, false, "i", block[atrb][playerid]);
atblock[playerid] += 1;
#endif
} else {
format(string,sizeof string,"You cannot place more then %i Roadblocks!",MAX_ROADBLOCKS);
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}
Anyone please? i need to set the "fire health"