[HELP] /mark /gotomark
#1

Hello how can I make this two commands ? Thanks
Reply
#2

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)