PointsPvP: getitem 7420,1; if (playerattached() == killedrid) end; getmapxy(@map$,@x,@y,0); set @CID,getcharid(0); set @points,0; set @name$,""; query_sql "SELECT `pointss_pvp` FROM `rank_pvp` WHERE `char_id`="+@CID+"",@points; query_sql "SELECT `char_name` FROM `rank_pvp` WHERE `char_id`="+@CID+"",@name$; if (@nome$ == ""){ query_sql "INSERT INTO `rank_pvp` (`char_id`,`char_name`,`points_pvp`) VALUES ("+@CID+",'"+strcharinfo(0)+"',1)",@esc$; dispbottom "Pontos PvP Master: 1"; end; } query_sql "UPDATE `rank_pvp` SET `points_pvp` = `points_pvp` +1 WHERE `char_id`="+@CID+"",@esc$; dispbottom "Total PvP Points: "+(@points+1); end; }