Command Help. - FILESCRIPT
#1

Hello guys,
That are my 3 commands for my filescript (there is something more about that commands...). But the [CMD] /slock (to lock the a supmobil - vehicle) and the /dsupmobil (to destroy the supmobil - vehicle) don't work. (It says: Unknown Command.Please use /help...(etc) -).

What I want?:
•Fix the [CMD] /slock and the /dsupmobil (don't work)
•Make ALL commands [3 commands] for admin level +2


Commands:

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/supmobil", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,16,DIALOG_STYLE_LIST,"Ad min SupMobil Spawner","Comet\nTug\nQuad","Spawnen","Cancel");
return 1;
}
if (strcmp("/slock", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == SupMobil[playerid])
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(i == playerid) continue;
SetVehicleParamsForPlayer(SupMobil[playerid],i,0,1);
}
SendClientMessage(playerid,COLOR_YELLOW,"Your SupMobil Has Been Locked!");
}
return 1;
}
if (strcmp("/dsupmobi", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == SupMobil[playerid])
{
new currentveh;
currentveh = SupMobil[playerid];
DestroyVehicle(currentveh);
SendClientMessage(playerid,-1,"You've Successfully Destroyed This SupMobil");
}
return 1;
}
return 0;
}

PLEASE COMMENT THE RESULTS OR JUST ADD ME ON SKYPE: gregor.kouk

THANKS
Reply
#2

Someone please?
Reply
#3

Guys please I need you I haven't it fixed.
AND this is not spam...Last message has been posted last 3hours
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)