[AYUDA] Con este otro comando - 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: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [AYUDA] Con este otro comando (
/showthread.php?tid=147000)
[AYUDA] Con este otro comando -
Jesus^ - 10.05.2010
Bueno.. Hice este Post para no confundir con el otro xD!
Se trata de que me ayudaran para que el comando /v lock (sirve para ponerle seguro al auto) se pueda utilizar nada mas cuando esta cerca del auto, porque el comando se puede usar cuando estas lejisimo del auto, y yo quiero que este cerca, osea, en la puerta xD! aQUI EL COMANDO:
pawn Код:
else if(strcmp(x_nr,"lock",true) == 0)
{
new keycar = PlayerInfo[playerid][pPcarkey];
if(keycar != 999)
{
new locked[256];
locked = strtok(cmdtext, idx);
if(CarInfo[keycar][cLock] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~w~Vehiculo~n~~g~Abierto");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar][cLock] = 0;
OnPropUpdate();
return 1;
}
else if(CarInfo[keycar][cLock] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~w~Vehiculo~n~~r~Cerrado");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar][cLock] = 1;
OnPropUpdate();
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " No tienes ningun vehiculo en la ranura 1");
return 1;
}
}
Re: [AYUDA] Con este otro comando -
xenowort - 10.05.2010
Le falta playerpointtopoint creo que era algo asi, ahora te busco en la wiki.