pawn Код:
if (strcmp(cmd, "/neontest", true) == 0)
{
if(UserStats[playerid][Fraktion] == 1)
{
if(!GetPVarInt(playerid, "Status"))
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neo1", CreateObject(18647,0,0,0,0,0,0));
SetPVarInt(playerid, "neo2", CreateObject(18647,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neo1"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neo2"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
else
{
DestroyObject(GetPVarInt(playerid, "neo1"));
DestroyObject(GetPVarInt(playerid, "neo2"));
DeletePVar(playerid, "Status");
}
}
return 1;
}
Try this.