SA-MP Forums Archive
[HELP] /mark /gotomark - 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: [HELP] /mark /gotomark (/showthread.php?tid=478425)



[HELP] /mark /gotomark - Luca12 - 29.11.2013

Hello how can I make this two commands ? Thanks


Re: [HELP] /mark /gotomark - FLapJAck - 29.11.2013

CMD:mark(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
{
SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
return 1;
}
GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
TeleportDestInt[playerid] = GetPlayerInterior(playerid);
SendClientMessage(playerid, COLOR_GRAD1, "Teleporter destination set!");
}
else {
SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
}
return 1;
}

CMD:mark2(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
{
SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
return 1;
}
GetPlayerPos(playerid, TeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
TeleportDestInt2[playerid] = GetPlayerInterior(playerid);
SendClientMessage(playerid, COLOR_GRAD1, "Teleporter destination set!");
}
else {
SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
}
return 1;
}