some help
#1

well when i have telport command it's works good and it's telport
so i tryed to make it for admins only but i failed , can you make it like this
if the player write /telport12 , it's says to him , "You are not an admins " , thank you all



Код:
if(!strcmp("/telport12",cmdtext,true)){
	SetPlayerPos(playerid, 1415.0325, -995.3412 ,57.5156);
             return 1;}
Reply
#2

i need it only for admins!!!
Reply
#3

as i add to the script if([Playerid][pAdmin]=3
but this don't works!!
Reply
#4

Код:
if(!strcmp("/telport12",cmdtext,true))
{
  if([Playerid][pAdmin] == 3)
  {
  SetPlayerPos(playerid, 1415.0325, -995.3412 ,57.5156);
  }
  else{
  SendClientMessage(playerid, 0xe7553dAA, You are not an admin.");
  }
  return 1;
}
Reply
#5

Edit: SOme guy already did what I just did.
And that's the way to do it.
Reply
#6

Quote:
Originally Posted by Mystique
Посмотреть сообщение
Код:
if(!strcmp("/telport12",cmdtext,true))
{
  if([Playerid][pAdmin] == 3)
  {
  SetPlayerPos(playerid, 1415.0325, -995.3412 ,57.5156);
  }
  else{
  SendClientMessage(playerid, 0xe7553dAA, You are not an admin.");
  }
  return 1;
}
thanks..............
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)