/dropcar - 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)
+--- Thread: /dropcar (
/showthread.php?tid=642203)
/dropcar -
Jaua10 - 26.09.2017
Hey guys its posssible to convert this cmd in zcmd?
PHP код:
if(strcmp(cmd, "/dropcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerOnMission[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command!");
return 1;
}
if(PlayerInfo[playerid][pCarTime] == 0)
{
GameTextForPlayer(playerid, "~w~Car Selling ~n~~r~Drop the car at the Crane", 5000, 1);
CP[playerid] = 1;
SetPlayerCheckpoint(playerid, 2506.5625,-2630.6484,13.6467,8.0);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You already Dropped a car, wait till your reload time is over!");
}
}
return 1;
}
Re: /dropcar -
SetPlayerNameTag - 26.09.2017
Код HTML:
cmd:dropcar(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return 1;
if(PlayerOnMission[playerid]) return SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command!");
if(PlayerInfo[playerid][pCarTime] == 0)
{
GameTextForPlayer(playerid, "~w~Car Selling ~n~~r~Drop the car at the Crane", 5000, 1);
CP[playerid] = 1;
SetPlayerCheckpoint(playerid, 2506.5625,-2630.6484,13.6467,8.0);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You already Dropped a car, wait till your reload time is over!");
}
return 1;
}