Brazílie nZkkAbWB: 555
Brazílie nZkkAbWB: 555
Brazílie nZkkAbWB: 555
Brazílie nZkkAbWB: 555
Brazílie nZkkAbWB: (select 198766*667891 from DUAL)

SA-MP Scripting Tutorial 4: Basic Commands

uživatelský avatar

03.03.2012, 03:26:50
26031 zobrazení,
Here are the commands as they should look like after you follow every instruction showing up on the tutorial. You will need the COLOR defines found here. If you don't know how to define them , watch the whole tutorial. http://www.youtube.com/watch?v=4Qe6NbLm5bc

---------------------------------------------------------------------------------
if (strcmp("/heal", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have been healed!");
return 1;
}
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have commited suicide!");
return 1;
}
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) Welcome to my Server's HELP command!");
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) Hope you enjoy the tutorial!");
return 1;
}

---------------------------------------------------------------------------------
Music: Sunshine(version 2) byKevin MacLeod ( www.Incompetech.com)
Licensed under Attribution 3.0 Unported (CC BY 3.0)
Přidat komentář

Komentáře (0)