i got Kia ProSurf and i tried to add am a Top SP and its works but
if you logout and there is new map, restart , server falldown and you not connect
you wont bee seen in the map can some one help me ?
Top Code :
PHP Code:
public surf_top(id)
{
new szHTML[2500], iLen;
new SurfTop, TopId;
iLen = copy(szHTML, charsmax(szHTML), "<html><body><h2>Top SurfPoints</h2><br><table><tr><th>#Rank. </th><th>Name </th><th>SurfPoints</th></tr>");
for( new i = 0; i < get_maxplayers(); i++ )
{
if( is_user_hltv( i ) || is_user_bot( i ) )
continue;
new Pros = g_iTempPoints[ i ];
if( Pros > SurfTop )
{
TopId = i;
SurfTop = Pros;
}
iLen += formatex(szHTML[iLen], charsmax(szHTML)-iLen, "<tr><td>%i.</td><td>%s</td><td>%i</td></tr>", i, GetUserName( i ), g_iTempPoints[ i ] );
}
iLen += copy(szHTML[iLen], charsmax(szHTML)-iLen, "</table></body></html>");
show_motd(id, szHTML, "Top 15");
return PLUGIN_HANDLED;
}