10.06.2013, 15:18
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;
}