Storm RPG modban van
if(strcmp(cmd,\"/személyi\",true)==0 || strcmp(cmd,\"/szemelyi\",true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, \"USAGE: /személyi [playerid/PartOfName]\");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, \"Magadnak nem tudod megmutatni,használd a /stats parancsot!\"); return 1; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new age = PlayerInfo[playerid][pAge];
new housekey = PlayerInfo[playerid][pPhousekey];
format(string, sizeof(string), \"|__________ %s Személyi igazolványa __________|\", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), \"** Név: %s\", sendername);
SendClientMessage(giveplayerid, COLOR_GREY, string);
if(PlayerInfo[playerid][pSex] == 1)
{ SendClientMessage(giveplayerid,COLOR_GREY,\"** Nem: Férfi\"); }
else if(PlayerInfo[playerid][pSex] == 2)
{ SendClientMessage(giveplayerid,COLOR_GREY,\"** Nem: Nõ\"); }
format(string, sizeof(string), \"** Kor: %d\", age);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), \"** Házszám: %d\", housekey);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), \"* %s megmutatta a személyi igazolványát neked.\", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), \"* Megmutattad a személyi igazolványodat neki: %s.\", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, \" Nem vagy elég közel hozzá!\");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, \" Nincs fent az a játékos !\");
return 1;
}
}
return 1;
}