26.08.2014, 11:00
pawn Код:
CMD:nick(playerid,params[]){if(!Logged{playerid}) return Ban(playerid);if(AdminLevel <1)return MSG(playerid,C_RED,"[ERROR] {FF6969}You not allowed to use this command!");if(sscanf(params,"us",p1,nString)) return MSG(playerid,C_RED,"[ERROR] {ff6969}USAGE: /NICK <ID> <NEW NICK>"); DOF2_CreateFile(cnFile(playerid)); DOF2_SetString(cnFile(playerid),"Password",DOF2_GetString(pFile(p1),"Password")); DOF2_SetString(cnFile(playerid),"Clan",DOF2_GetString(pFile(p1),"Clan")); DOF2_SetInt(cnFile(playerid),"Admin",DOF2_GetInt(pFile(p1),"Admin")); DOF2_SetInt(cnFile(playerid),"Money",DOF2_GetInt(pFile(p1),"Money")); DOF2_SetInt(cnFile(playerid),"Bank",DOF2_GetInt(pFile(p1),"Bank")); DOF2_SetInt(cnFile(playerid),"Level",DOF2_GetInt(pFile(p1),"Level")); DOF2_SetInt(cnFile(playerid),"Kills",DOF2_GetInt(pFile(p1),"Kills")); DOF2_SetInt(cnFile(playerid),"Deaths",DOF2_GetInt(pFile(p1),"Deaths")); DOF2_SetInt(cnFile(playerid),"Skin",DOF2_GetInt(pFile(p1),"Skin")); DOF2_SetString(cnFile(playerid),"Tag",DOF2_GetString(pFile(p1),"Tag")); DOF2_SetInt(cnFile(playerid),"VIP",DOF2_GetInt(pFile(p1),"VIP")); DOF2_SetInt(cnFile(playerid),"Armour",DOF2_GetInt(pFile(p1),"Armour")); DOF2_SetInt(cnFile(playerid),"Vest",DOF2_GetInt(pFile(p1),"Vest")); DOF2_SetInt(cnFile(playerid),"Materials",DOF2_GetInt(pFile(p1),"Materials")); DOF2_SetInt(cnFile(playerid),"Heroin",DOF2_GetInt(pFile(p1),"Heroin")); DOF2_SetInt(cnFile(playerid),"Crack",DOF2_GetInt(pFile(p1),"Crack")); DOF2_SetInt(cnFile(playerid),"Cocaine",DOF2_GetInt(pFile(p1),"Cocaine")); DOF2_SetInt(cnFile(playerid),"SmallBomb",DOF2_GetInt(pFile(p1),"SmallBomb")); DOF2_SetInt(cnFile(playerid),"MediumBomb",DOF2_GetInt(pFile(p1),"MediumBomb")); DOF2_SetInt(cnFile(playerid),"LargeBomb",DOF2_GetInt(pFile(p1),"LargeBomb")); DOF2_SetInt(cnFile(playerid),"GiantBomb",DOF2_GetInt(pFile(p1),"GiantBomb")); DOF2_SetInt(cnFile(playerid),"Fish",DOF2_GetInt(pFile(p1),"Fish")); DOF2_SetInt(cnFile(playerid),"Turtle",DOF2_GetInt(pFile(p1),"Turtle")); DOF2_SetInt(cnFile(playerid),"Dolphin",DOF2_GetInt(pFile(p1),"Dolphine")); DOF2_SetInt(cnFile(playerid),"Shark",DOF2_GetInt(pFile(p1),"Shark")); DOF2_SetInt(cnFile(playerid),"Cow",DOF2_GetInt(pFile(p1),"Cow")); DOF2_SetInt(cnFile(playerid),"Vehicle",DOF2_GetInt(pFile(p1),"Vehicle")); DOF2_SetInt(cnFile(playerid),"VehClr1",DOF2_GetInt(pFile(p1),"VehClr1")); DOF2_SetInt(cnFile(playerid),"VehClr2",DOF2_GetInt(pFile(p1),"VehClr2")); DOF2_SetInt(cnFile(playerid),"VehWheels",DOF2_GetInt(pFile(p1),"VehWheels")); DOF2_SetInt(cnFile(playerid),"VehHyd",DOF2_GetInt(pFile(p1),"VehHyd")); DOF2_SetInt(cnFile(playerid),"VehNitro",DOF2_GetInt(pFile(p1),"VehNitro")); DOF2_SetInt(cnFile(playerid),"1",DOF2_GetInt(pFile(p1),"1")); DOF2_SetInt(cnFile(playerid),"2",DOF2_GetInt(pFile(p1),"2")); DOF2_SetInt(cnFile(playerid),"3",DOF2_GetInt(pFile(p1),"3")); DOF2_SetInt(cnFile(playerid),"4",DOF2_GetInt(pFile(p1),"4")); DOF2_SetInt(cnFile(playerid),"5",DOF2_GetInt(pFile(p1),"5")); DOF2_SetInt(cnFile(playerid),"6",DOF2_GetInt(pFile(p1),"6")); DOF2_SetInt(cnFile(playerid),"7",DOF2_GetInt(pFile(p1),"7")); DOF2_SetInt(cnFile(playerid),"8",DOF2_GetInt(pFile(p1),"8")); DOF2_SetInt(cnFile(playerid),"9",DOF2_GetInt(pFile(p1),"9")); DOF2_SetInt(cnFile(playerid),"10",DOF2_GetInt(pFile(p1),"10")); DOF2_SetInt(cnFile(playerid),"11",DOF2_GetInt(pFile(p1),"11")); DOF2_SetInt(cnFile(playerid),"12",DOF2_GetInt(pFile(p1),"12")); DOF2_SetInt(cnFile(playerid),"13",DOF2_GetInt(pFile(p1),"13")); DOF2_SetInt(cnFile(playerid),"14",DOF2_GetInt(pFile(p1),"14")); DOF2_SetInt(cnFile(playerid),"15",DOF2_GetInt(pFile(p1),"15")); DOF2_SetInt(cnFile(playerid),"16",DOF2_GetInt(pFile(p1),"16")); DOF2_SetInt(cnFile(playerid),"17",DOF2_GetInt(pFile(p1),"17")); DOF2_SetInt(cnFile(playerid),"18",DOF2_GetInt(pFile(p1),"18")); DOF2_SetInt(cnFile(playerid),"22",DOF2_GetInt(pFile(p1),"22")); DOF2_SetInt(cnFile(playerid),"23",DOF2_GetInt(pFile(p1),"23")); DOF2_SetInt(cnFile(playerid),"24",DOF2_GetInt(pFile(p1),"24")); DOF2_SetInt(cnFile(playerid),"25",DOF2_GetInt(pFile(p1),"25")); DOF2_SetInt(cnFile(playerid),"26",DOF2_GetInt(pFile(p1),"26")); DOF2_SetInt(cnFile(playerid),"27",DOF2_GetInt(pFile(p1),"27")); DOF2_SetInt(cnFile(playerid),"28",DOF2_GetInt(pFile(p1),"28")); DOF2_SetInt(cnFile(playerid),"29",DOF2_GetInt(pFile(p1),"29")); DOF2_SetInt(cnFile(playerid),"30",DOF2_GetInt(pFile(p1),"30")); DOF2_SetInt(cnFile(playerid),"31",DOF2_GetInt(pFile(p1),"31")); DOF2_SetInt(cnFile(playerid),"32",DOF2_GetInt(pFile(p1),"32")); DOF2_SetInt(cnFile(playerid),"33",DOF2_GetInt(pFile(p1),"33")); DOF2_SetInt(cnFile(playerid),"34",DOF2_GetInt(pFile(p1),"34")); DOF2_SetInt(cnFile(playerid),"35",DOF2_GetInt(pFile(p1),"35")); DOF2_SetInt(cnFile(playerid),"36",DOF2_GetInt(pFile(p1),"36")); DOF2_SetInt(cnFile(playerid),"37",DOF2_GetInt(pFile(p1),"37")); DOF2_SetInt(cnFile(playerid),"38",DOF2_GetInt(pFile(p1),"38")); DOF2_SetInt(cnFile(playerid),"39",DOF2_GetInt(pFile(p1),"39")); DOF2_SetInt(cnFile(playerid),"40",DOF2_GetInt(pFile(p1),"40")); DOF2_SetInt(cnFile(playerid),"41",DOF2_GetInt(pFile(p1),"41")); DOF2_SetInt(cnFile(playerid),"42",DOF2_GetInt(pFile(p1),"42")); DOF2_SetInt(cnFile(playerid),"43",DOF2_GetInt(pFile(p1),"43"));SetPlayerName(p1,nString);MSG(playerid,C_GREEN,"The name has been changed succesfully");MSG(p1,C_RED,"======================================");format(String,sizeof(String),"{%06x}%s {00FF00}has been changed your name to %s",GetPlayerColor(playerid) >>> 8,GetName(playerid),nString);MSG(p1,C_GREEN,String);MSG(p1,C_RED,"======================================");return 1;}
