28.01.2014, 13:35
pawn Код:
dcmd_adon(playerid,params[])
{
#pragma unused params
if(InAdminMode[playerid] == 1)
{
SendClientMessage(playerid,COLOR_ERROR,"You are already in admin mode.");
return 1;
}
if(IsSpawned[playerid] != 1)
{
SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to go into admin mode.");
return 1;
}
for(new w=0; w<13; w++)
{
GetPlayerWeaponData(playerid,w,PlayerWeapon[playerid][w],PlayerAmmo[playerid][w]);
}
InAdminMode[playerid] = Create3DTextLabel("Administrator on duty!\n*Do not Disturb*",0xF600F6FF,30.0,40.0,50.0,40.0,0); // Line 6283
Attach3DTextLabelToPlayer(InAdminMode[playerid],playerid,0.0,0.0,0.5); // Line 6284
SendClientMessage(playerid,COLOR_ADMIN,"You are now in admin mode. You have unlimited minigun, health and armour.");
ResetPlayerWeapons(playerid);
InAdminMode[playerid] =1;
GivePlayerWeapon(playerid,38,999999);
SetPlayerHealth(playerid,999999);
SetPlayerArmour(playerid,999999);
return 1;
}
pawn Код:
C:\Users\Bing\Desktop\Started\gamemodes\robbing.pwn(6283) : warning 213: tag mismatch
C:\Users\Bing\Desktop\Started\gamemodes\robbing.pwn(6284) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Thanks.