#define TEAM_EMBER 0#define TEAM_ZOMBI 1public OnPlayerRequestClass(playerid, classid){if(classid == 0) { GameTextForPlayer(playerid, \"~b~Ember\", 3000, 3); SetPVarInt(playerid, \"RequestClass\", TEAM_EMBER); SetPlayerPos(playerid, -289.3768,1536.5841,75.5625); SetPlayerFacingAngle(playerid, 333); SetPlayerCameraPos(playerid, -284.4898,1546.7723,75.3594); SetPlayerCameraLookAt(playerid, -289.3768,1536.5841,75.5625); ApplyAnimation(playerid,\"DANCING\",\"DNCE_M_C\",4.0,1,0,0,0,-1); } if(classid == 1) { GameTextForPlayer(playerid, \"~w~Zombi\", 3000, 3); SetPVarInt(playerid, \"RequestClass\", TEAM_ZOMBI); ApplyAnimation(playerid,\"DANCING\",\"DNCE_M_C\",4.0,1,0,0,0,-1); }return 1;}
ugy nem lesz jo mert ha leesik valahonet az mar nem szamitna fertozesnek erted?Meg tudom csinálni neked úgy, hogy ha lemegyen az élete akkor 99% lesz akkor tegye átt a zombi csapatba.. így nem jó?
#include <a_samp>#define TEAM_EMBER 0#define TEAM_ZOMBI 1public OnPlayerRequestClass(playerid, classid){ if(classid == 0) { GameTextForPlayer(playerid, \"~b~Ember\", 3000, 3); SetPVarInt(playerid, \"RequestClass\", TEAM_EMBER); SetPlayerPos(playerid, -289.3768,1536.5841,75.5625); SetPlayerFacingAngle(playerid, 333); SetPlayerCameraPos(playerid, -284.4898,1546.7723,75.3594); SetPlayerCameraLookAt(playerid, -289.3768,1536.5841,75.5625); ApplyAnimation(playerid,\"DANCING\",\"DNCE_M_C\",4.0,1,0,0,0,-1); SetPlayerTeam(playerid, 1); } if(classid == 1) { GameTextForPlayer(playerid, \"~w~Zombi\", 3000, 3); SetPVarInt(playerid, \"RequestClass\", TEAM_ZOMBI); ApplyAnimation(playerid,\"DANCING\",\"DNCE_M_C\",4.0,1,0,0,0,-1); SetPlayerTeam(playerid, 2); }return 1;}public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid){if(GetPlayerTeam(playerid) != GetPlayerTeam(damagedid)){ SendClientMessage(damagedid, -1, \"Megharaptak! Átváltoztál zombivá.\"); SendClientMessage(playerid, -1, \"Megharaptad!\"); SetPlayerSkin(damagedid, 0); SetPlayerTeam(damagedid, 2);} return 1;}