Little command doesnt work
#1

Код:
	if(strcmp(cmd, "/eexit", true) == 0) {
    new Float:pX,Float:pY,Float:pZ;
 		SendPlayerFormattedText(playerid,"::::::::::::::::::::::::::::::::::::::::::::",0);
    SendClientMessage(playerid, COLOR_YELLOW	, "EMERGENCY EXIT activated");
    SendPlayerFormattedText(playerid,"::::::::::::::::::::::::::::::::::::::::::::",0);
  		GetPlayerPos(giveplayerid,pX,pY,pZ);
	  SetPlayerPos(giveplayerid,pX,pY,pZ+20);
	  GivePlayerWeapon(playerid, 46, 1);
	return 1;
  }
Whats wrong?
Reply
#2

Quote:
Originally Posted by Mo3
Код:
	if(strcmp(cmd, "/eexit", true) == 0) {
    new Float:pX,Float:pY,Float:pZ;
 		SendPlayerFormattedText(playerid,"::::::::::::::::::::::::::::::::::::::::::::",0);
    SendClientMessage(playerid, COLOR_YELLOW	, "EMERGENCY EXIT activated");
    SendPlayerFormattedText(playerid,"::::::::::::::::::::::::::::::::::::::::::::",0);
 		GetPlayerPos(giveplayerid,pX,pY,pZ);
	  SetPlayerPos(giveplayerid,pX,pY,pZ+20);
	  GivePlayerWeapon(playerid, 46, 1);
	return 1;
  }

Whats wrong?
its like slapping a player .. lol, GetPlayerPos(playerid,pX,pY,pZ);
SetPlayerPos(playerid,pX,pY,pZ+20);
Reply
#3

And? Its meant as a emergency exit out of a helicopter or plane..
Reply
#4

I though from a building,anyway did it worked ?
Reply
#5

pawn Код:
SetPlayerPos(playerid,pX,pY,pZ+20);
Why so high? set +3 and enough.
Reply
#6

It doesnt work, your position is not getting setted.
Reply
#7

maybe because you forgot if(IsPlayerInVehicle(playerid,vehicle);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)