09.03.2009, 13:47
I want make it that when i connect i will spawn with my skin and color.
But i want to add diffrent names and weapons but im not getting it to work.
How can i make this work with more names? and diffrent weapons?
But i want to add diffrent names and weapons but im not getting it to work.
Код:
new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); if(strcmp("GMusicOn", pname, true) == 0) { SpawnPlayer(playerid); GivePlayerWeapon(playerid, 26, 5000); //swanoffs GivePlayerWeapon(playerid, 24, 5000); //deagle GivePlayerWeapon(playerid, 28, 5000); // uzi GivePlayerWeapon(playerid, 31, 5000); // M4 GivePlayerWeapon(playerid, 34, 5000); // Sniper GivePlayerWeapon(playerid, 16, 5000); // Nades SetPlayerColor(playerid, 0xFFFF00AA); // yellow SetPlayerArmour(playerid, 100.0); SetPlayerSkin(playerid, 60); SendClientMessage(playerid, 0x33AA33AA, "Welcome back GMusicOn, your data has loaded."); }