[Ajuda] teleport - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] teleport (
/showthread.php?tid=663681)
teleport -
shirouz - 08.02.2019
Galera, como faзo para bloquear 5 veнculos para nгo usar em teleport? eu conseguir fazer para bloquear o teleport se vc estiver em um veнculo e tambйm ir no teleport sem ele, mas eu nгo to conseguindo fazer um modo de bloquear 5 veнculos no teleport. Alguйm sabe?
PHP Code:
if(strcmp(cmdtext,"/grove",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Grove Street",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
SetVehiclePos(vehicleid, 2498.6641,-1667.9890,13.3468);
format(string, sizeof(string), "%s foi para a GROOVE STREET | /GROVE | ", GetPlayerNameEx(playerid));
GivePlayerGrana(playerid, -2000);
SendClientMessageToAll(-1, string);}
else{
SetPlayerPos(playerid, 2498.6641,-1667.9890,13.3468);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"Grove Street",4000,6);
format(string, sizeof(string), "%s foi para a GROOVE STREET | /GROVE | ", GetPlayerNameEx(playerid));
GivePlayerGrana(playerid, -2000);
SendClientMessageToAll(-1, string);}
return 1;}
Re: teleport -
Felipealves - 08.02.2019
PHP Code:
if(strcmp(cmdtext,"/grove",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(GetVehicleModel(vehicleid) == 522 || GetVehicleModel(vehicleid) == 520) return SendClientMessage(playerid, -1, "Vocк nгo pode teleportar-se com esse veiculo!");
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER){
GameTextForPlayer(playerid,"Grove Street",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
SetVehiclePos(vehicleid, 2498.6641,-1667.9890,13.3468);
format(string, sizeof(string), "%s foi para a GROOVE STREET | /GROVE | ", GetPlayerNameEx(playerid));
GivePlayerGrana(playerid, -2000);
SendClientMessageToAll(-1, string);
}else{
SetPlayerPos(playerid, 2498.6641,-1667.9890,13.3468);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"Grove Street",4000,6);
format(string, sizeof(string), "%s foi para a GROOVE STREET | /GROVE | ", GetPlayerNameEx(playerid));
GivePlayerGrana(playerid, -2000);
SendClientMessageToAll(-1, string);
}
return 1;
}