09.11.2011, 02:31
(
Последний раз редактировалось Chrillzen; 09.11.2011 в 03:41.
)
FIXED!
if(strcmp("/spraycrips", cmdtext, true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE) {
new Float:x, Float:y, Float:z, Float:a;
GetPlayerFacingAngle(playerid,a);
GetPlayerPos(playerid, x, y, z);
SetTimerEx("DestroyObject", 60000, false, "i", CreateObject(1524, x, y, z, 0.0, 0.0, a+90));
}
else {
SendClientMessage(playerid,COLOR_RED, "[ERROR:] You are not in this gang!");
}
return 1;
}
// do like this
// this on your command
if (strcmp("/your command", cmdtext, true, 10) == 0)
SetTimer("destroy", 8000, false); // 1000 miliseconds (1 second)
// this on bottom of your gamemode or filterscript
forward destroy();
public destroy()
{
DestroyObject(your object id);
}