18.08.2010, 02:05
Hello all ,
also
It works and everything , But when a vehicle drives over it , the TIRES don't blow out , any help ?
Код:
if (strcmp(cmd,"/createstrip",true) == 0) { if(IsACop(playerid)) { if(OnDuty[playerid] != 1) { new Float:X,Float:Y,Float:Z,Float:A; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid,A); CreateStrip(X,Y,Z,A); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "HQ: Officer %s has successfully deployed a spikestrip.", sendername); SendTeamMessage(1, TEAM_BLUE_COLOR, string); SendTeamMessage(99, TEAM_BLUE_COLOR, string); } } return 1; }
Код:
stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle) { for(new i = 0; i < sizeof(SpikeInfo); i++) { if(SpikeInfo[i][sCreated] == 0) { SpikeInfo[i][sCreated]=1; SpikeInfo[i][sX]=x; SpikeInfo[i][sY]=y; SpikeInfo[i][sZ]=z-0.7; SpikeInfo[i][sObject] = CreateDynamicObject(2899, x, y, z-0.9, 0, 0, Angle-90); return 1; } } return 0; }