13.10.2011, 05:15
й so por Esse Code aqi no seu GM
pelo uq eu entendi й isso !
Eu entendi que й pra dar Chaves pra outro Player , Certo ?
Код:
if(strcmp(cmd, "/darchaves", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); new car; if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USE: /darchaves [id]"); return 1; } giveplayerid = ReturnUser(tmp); if(HireCar[playerid] == 299 && PlayerInfo[playerid][pPHousekey] == 255) { SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo tem uma chave para dar"); return 1; } else { if(HireCar[playerid] != 299 && SwitchKey[playerid] == 0) { car = HireCar[playerid]; VTrancado[car] = 0; UnLockCar(car); HireCar[playerid] = 299; } else { car = PlayerInfo[playerid][pPHousekey]+totalveiculos; } } if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(ProxDetectorS(5.0, playerid, giveplayerid)) { if(HireCar[giveplayerid] != 299) { VTrancado[HireCar[giveplayerid]] = 0; UnLockCar(HireCar[giveplayerid]); } HireCar[giveplayerid] = car; HireCar[playerid] = 999; GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), " Vocк deu a chave do seu veiculo para %s", giveplayer); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_GRAD1, string); format(string, sizeof(string), " Vocк recebeu a chave do veiuclo de %s", sendername); SendClientMessage(giveplayerid, COLOR_GRAD1, string); format(string, sizeof(string), "* %s da uma chave para %s.", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } } } return 1; }
Eu entendi que й pra dar Chaves pra outro Player , Certo ?