How to make a specifc Teleport for Admins only?
#1

Sorry, I'm a bit new at scripting, but enjoying it alot. Anyways I'm just wondering what I need to add to this to make it for Admins only, thanks. (Also if you could tell me, like how to make something for LSPD only or The Army, ex: Opening a specific gate"


Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cia", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 100.7311,1920.8513,18.2811);
SendClientMessage(playerid, 0xFFFF40FF, "You have been Teleported");
return 1;
}

Thanks for your help guys, this community is making me a better scripter already.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)