Jump to content
  • 0

Ce nu e in regula cu asta?


florin

Question

[pawn]if(strcmp(cmdtext, "/flip", true) == 0)

  {

  if(IsPlayerInAnyVehicle(playerid))

  {

    new currentveh;

    new Float:angle;

    currentveh = GetPlayerVehicleID(playerid);

    GetVehicleZAngle(currentveh, angle);

    SetVehicleZAngle(currentveh, angle);

    SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");

    return 1;

  }

  else

  {

    SendClientMessage(playerid, 0xFFFFFFFF, "You are not in any vehicle!");

    return 1;

  }

  }

  return 0;

}

[/pawn]

Vreau sa pun comanda /flip si cand compilez imi da don't send ce nu e bine la comanda asta ca nu imi dau seama?

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

if(strcmp(cmdtext, "/flip", true) == 0)

  {

  if(IsPlayerInAnyVehicle(playerid))

  {

    new currentveh;

    new Float:angle;

    currentveh = GetPlayerVehicleID(playerid);

    GetVehicleZAngle(currentveh, angle);

    SetVehicleZAngle(currentveh, angle);

    SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");

    return 1;

  }

  else

  {

    SendClientMessage(playerid, 0xFFFFFFFF, "You are not in any vehicle!");

    return 1;

  }

  return 0;

}

Incearca asa

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Link to comment
Share on other sites

if(strcmp(cmdtext, "/flip", true) == 0)

  {

  if(IsPlayerInAnyVehicle(playerid))

  {

    new currentveh;

    new Float:angle;

    currentveh = GetPlayerVehicleID(playerid);

    GetVehicleZAngle(currentveh, angle);

    SetVehicleZAngle(currentveh, angle);

    SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");

    return 1;

  }

  else

  {

    SendClientMessage(playerid, 0xFFFFFFFF, "You are not in any vehicle!");

    return 1;

  }

  return 0;

}

Incearca asa

Of, of, of, uite cum l-am rezolvat eu in NOTEPAD ++:

if(strcmp(cmdtext, "/flip", true) == 0)
{
	if( !IsPlayerInAnyVehicle(playerid) ) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in any vehicle!");

	new currentveh, Float:angle;
	currentveh = GetPlayerVehicleID(playerid);
	GetVehicleZAngle(currentveh, angle);
	SetVehicleZAngle(currentveh, angle);
	SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");
	return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.