Making a CMD for a specific person.
#4

pawn Код:
stock PlayerName(playerid)
{
    new name[24];
    GetPlayerName(playerid, name, 24);
    return name;
}
CMD:greg(playerid,params[])
{
    if(strcmp(PlayerName(playerid),"Greg_Realds",true) == 0))
     {
         new carid;
         SetPlayerSkin(playerid,240);
         SetPlayerHealth(playerid,99999);
         SetPlayerArmour(playerid,99999);
         GivePlayerWeapon(playerid,1,9999);
         GivePlayerWeapon(playerid,4,9999);
         GivePlayerWeapon(playerid,18,9999);
         GivePlayerWeapon(playerid,24,9999);
         GivePlayerWeapon(playerid,27,9999);
         GivePlayerWeapon(playerid,29,9999);
         GivePlayerWeapon(playerid,31,9999);
         GivePlayerWeapon(playerid,34,9999);
         GivePlayerWeapon(playerid,36,9999);
         GivePlayerWeapon(playerid,44,9999);
         new Float:X,Float:Y,Float:Z;
         GetPlayerPos(playerid, X, Y, Z);
         carid = CreateVehicle(522,X, Y, Z,0,233,142,-1);
         PutPlayerInVehicle(playerid, carid, 0);
     }
     else SendClientMessage(playerid,0xFF0000AA,"You arent Greg Realds .So you cannot use this command.");
     return 1;
}
Reply


Messages In This Thread
Making a CMD for a specific person. - by Realds - 10.06.2013, 15:11
Re: Making a CMD for a specific person. - by Gamer_007 - 10.06.2013, 15:14
Re: Making a CMD for a specific person. - by KickInTheMick - 10.06.2013, 15:15
Re: Making a CMD for a specific person. - by dannyk0ed - 10.06.2013, 15:18
Re: Making a CMD for a specific person. - by Realds - 10.06.2013, 21:04

Forum Jump:


Users browsing this thread: 1 Guest(s)