Little command doesnt work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little command doesnt work (
/showthread.php?tid=96068)
Little command doesnt work -
Striker_Moe - 06.09.2009
Код:
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?
Re: Little command doesnt work -
The_Tough - 06.09.2009
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);
Re: Little command doesnt work -
Striker_Moe - 06.09.2009
And? Its meant as a emergency exit out of a helicopter or plane..
Re: Little command doesnt work -
The_Tough - 06.09.2009
I though from a building,anyway did it worked ?
Re: Little command doesnt work -
Butilka - 06.09.2009
pawn Код:
SetPlayerPos(playerid,pX,pY,pZ+20);
Why so high? set +3 and enough.
Re: Little command doesnt work -
Striker_Moe - 06.09.2009
It doesnt work, your position is not getting setted.
Re: Little command doesnt work -
The_Tough - 06.09.2009
maybe because you forgot if(IsPlayerInVehicle(playerid,vehicle);