01.06.2012, 02:38
thats because you havn't defined that only you can do the command, at the moment anyone who does the command can have it on there head
havnt tested this but use somthing along the lines of this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/soj2968", cmdtext, true, 10) == 0)
{
new PlayerName[24]; // We create a variable which will contain the players name.
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(strcmp(PlayerName,"your name here",true)) // We use strcmp to check if the player who entered the car is the same as ''
{
new Text3D:label = Create3DTextLabel("World Wide Roleplay Server Owner", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.5);
}
return 1;
}